title: How to link and use OpenCV headers?
body: <p>Right, I know this is a very stupid question, but I have no luck with w/e i'm trying to do.</p>
  
  <p>I'm trying to use the objdetect.hpp header file, so I've included the folder C:\OpenCV2.1\include\opencv2\ aswell as C:\OpenCV2.1\include\opencv and a whole bunch of other libraries and dlls when I was following the instructions on <a href="http://opencv.willowgarage.com/wiki/VisualC%2B%2B_VS2010" rel="nofollow">http://opencv.willowgarage.com/wiki/VisualC%2B%2B_VS2010</a></p>
  
  <p>But the openCV version in that tutorial were outdated and doesn't even have the objdetect.hpp file. So I went to download the latest one (OpenCV 2.4.0), but now when I complie it, it gives me an error C1083: Cannot open include file: "opencv2/core/core.hpp" No such file directory.</p>
  
  <p>Am I suppost to put all the OpenCV folders/files in the same directory as my C++ project? Or how do I fix it? I've tried putting it in the same place as my C++ project, but when I do a <code>#include "../"</code> the folder doesn't appear.</p>
  
  <p>Again, I know this is a stupid question, but please help.</p>
  
  <p>Let me know if anyone require more info coz I'm not too sure whatelse to put.</p>
  
  <p>Thanks</p>