title: opencv 2.2 xcode4 ios4.3
body: <p>To build and install OpenCv2.2 I followed the instructions here: <a href="http://computer-vision-talks.com/2011/02/building-opencv-for-iphone-in-one-click/" rel="nofollow">http://computer-vision-talks.com/2011/02/building-opencv-for-iphone-in-one-click/</a> , <a href="http://computer-vision-talks.com/2011/01/using-opencv-in-objective-c-code/" rel="nofollow">http://computer-vision-talks.com/2011/01/using-opencv-in-objective-c-code/</a>
  The build script of OpenCv seems to work fine.. but after adding the libraries and headers to my XCode4 project I still have the same troubles:</p>
  
  <pre><code>/opencv/include/opencv2/ml/ml.hpp
  opencv/include/opencv2/ml/ml.hpp:2075:15: error: map: No such file or directory
  
  opencv/include/opencv2/ml/ml.hpp:2076:18: error: string: No such file or directory
  
  opencv/include/opencv2/ml/ml.hpp:2077:20: error: iostream: No such file or directory
  
  opencv/include/opencv2/ml/ml.hpp:2084: error: expected specifier-qualifier-list before 'public'
  
  opencv/include/opencv2/ml/ml.hpp:2106: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'CvMLData'
  
  opencv/include/opencv2/ml/ml.hpp:2186: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'cv'
  </code></pre>
  
  <p>I already have tried to add the <code>#include &lt;opencv2/opencv.hpp&gt;</code> to my <code>***-Prefix.pch</code> file and added  linker flags: <code>-lstdc++ -lz</code>, but still these errors.. any ideas?</p>