title: how to use CascadeClassifier in VS 2010 OpenCV
body: <p>I have a project, what loads pics, etc. I want to make object detection. I've got an xml from haartrain. The following code however <strong>won't compile:</strong> </p>
  
  <pre><code>String berniurl= "D:\Dropbox\Egyetem\tanulmany2\kutyafelek\berni.xml";
  CascadeClassifier berni_cascade;
  
  if( !berni_cascade.load( berniurl ) ){ 
      printf("--(!)Error loading\n"); 
  };
  </code></pre>
  
  <p>VS2010, OpenCV2.2 (downloaded from site already built).</p>
  
  <p>and errors are in main.obj, like: </p>
  
  <pre><code>Error   7   error LNK2019: unresolved external symbol "public: __thiscall cv::CascadeClassifier::~CascadeClassifier(void)" (??1CascadeClassifier@cv@@QAE@XZ) referenced in function _main   C:\Users\Gabor\Documents\Visual Studio 2010\Projects\opencvcucc\opencvcucc\main.obj
  
  
  Error   8   error LNK2019: unresolved external symbol "public: bool __thiscall cv::CascadeClassifier::load(class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; const &amp;)" (?load@CascadeClassifier@cv@@QAE_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function _main C:\Users\Gabor\Documents\Visual Studio 2010\Projects\opencvcucc\opencvcucc\main.obj
  </code></pre>