title: OpenCV in Code::Blocks: The application was unable to start correctly (0xc00000be)
body: <p>I set up OpenCV with Code::Blocks as per this tutorial: <a href="http://kevinhughes.ca/tutorials/opencv-install-on-windows-with-codeblocks-and-mingw/" rel="nofollow noreferrer">http://kevinhughes.ca/tutorials/opencv-install-on-windows-with-codeblocks-and-mingw/</a>.</p>
  
  <p>I've got as far as building the test program at the end successfully, but when I try to run it I get the following error: "The application was unable to start correctly (0xc00000be). Click OK to close the application."</p>
  
  <p>The one thing that is certainly different from the tutorial for me is that I'm working with OpenCV 3.0.0, Code::Blocks 13.12 and the latest version of mingw (number not obvious from their website or the installer). </p>
  
  <p>I found that other people had had this problem in the past, e.g. <a href="https://stackoverflow.com/questions/19239709/the-application-was-unable-to-start-correctly-0xc00000be">The application was unable to start correctly (0xc00000be)</a>
  However, it has been a long time since that thread was active, I'm working with newer versions of the software and, most importantly, the answer given there didn't help (I compiled openCV with the same mingw that I'm using with Code::Blocks), so I thought this question would be worth asking (sorry if it's not, I'm rather new to this).</p>
  
  <p>Could anybody suggest a fix that might get rid of this error?</p>
  
  <p>A few other things to note: </p>
  
  <ul>
  <li><p>I didn't download the Code::Blocks that came with mingw as I was advised against it, I got them separately as per the tutorial</p></li>
  <li><p>I have installed OpenCV and Code::Blocks on my E: drive, though mingw is still on my C:.</p></li>
  <li><p>I have added both mingw and OpenCV to my PATH variable, and mingw to my Path variable</p></li>
  <li><p>I have linked the libraries in both the main compiler settings for Code::Blocks and the Build Options of my project.</p></li>
  <li><p>I'm working from a 64-bit Windows 7 Laptop, but I have done everything 32-bit style as advised in the tutorial.</p></li>
  </ul>
  
  <p>Thanks in advance!</p>