title: Compile app with OpenCV 2.4 in Windows 7 command line
body: <p>I download OpenCV 2.4 extracted into <code>C:\OpenCV2.4</code>. Added one system variables <code>OPENCV_DIR=C:\OpenCV2.4\build</code> and added to PATH the following <code>%OPENCV_DIR%\x64\vc10\bin</code></p>
  
  <p>My code looks like</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;opencv\cv.h&gt;
  #include &lt;opencv\highgui.h&gt;
  
  int main(){
     IplImage *img = cvLoadImage("imagen.jpg");
     if(!img){
        std::cout &lt;&lt; "File not found\n" &lt;&lt; std::endl;
     }
  }
  </code></pre>
  
  <p>Now from the command-line tool I tried something like:</p>
  
  <p><code>cl testCV.cpp /IC:\OpenCV2.4\build\include</code></p>
  
  <p>and get the following error:</p>
  
  <p><code>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\intrin.h(26) : fatal error C1083: Cannot open include file: 'ammintrin.h': No such file or directory</code></p>
  
  <p>How can I compile this program with cl.exe? I cannot achieve this.</p>