title: Opencv2.4.0 with mingw in windows get crashed
body: <p>I followed steps <a href="https://stackoverflow.com/questions/10860352/getting-started-with-opencv-2-4-and-mingw-on-windows-7/10860353#comment17523493_10860353">in this SO link</a> to compile a sample program using OpenCV2.4.0 in windows. I made a setup both in DEVC++ and NetBeans with Mingw. My sample Program is getting Compiled properly, but when I run the exe the application get crashes.</p>
  
  <p>But In same machine I used opencv2.1.0 and the same sample program gets compiled and there is no crash while running it.</p>
  
  <p>The below is the Sample Code I tried to execute:</p>
  
  <pre><code>#include "highgui.h"
  using namespace std;
  int main( int argc, char** argv ) {
  IplImage* img = cvLoadImage( "C:\\Documents and Settings\\All Users\\Documents\\My Pictures\\Sample Pictures\\Water lilies.jpg" );
  cvNamedWindow( "Sample", CV_WINDOW_AUTOSIZE );
  cvShowImage( "Sample", img );
  cvWaitKey(0);
  cvReleaseImage( &amp;img );
  cvDestroyWindow( "Sample" );
  } 
  </code></pre>
  
  <p>UPDATE :</p>
  
  <p>I follwed as the steps as moskito-x link to build the opencv and when I press "configure", I get the following error. And my make file is also 35kb in size.
  Any suggestions to solve this?
  <img src="https://i.stack.imgur.com/Mkaux.png" alt="enter image description here"></p>