title: Cant get Flandmarks to work, C++, Error LNK2019, Unresolved external symbol
body: <p>I want to test Flandmarks for face detection 
  <a href="http://cmp.felk.cvut.cz/~uricamic/flandmark/" rel="nofollow">http://cmp.felk.cvut.cz/~uricamic/flandmark/</a> But I cant get it to work.</p>
  
  <p>I've been working on this for probably 10 hours.
  I asked for help on opencv.org (<a href="http://answers.opencv.org/question/16956/eye-detection-is-jumping/" rel="nofollow">http://answers.opencv.org/question/16956/eye-detection-is-jumping/</a> , the question were first about something else, see comments if you want to read what was said about this problem) And got some help but the problem is still there.</p>
  
  <p>Computer: 64bit, windows 7, Visual studio 2010.</p>
  
  <p>What I've tried:</p>
  
  <p>Due to this problem i was asked to try with an empty project so I did that.</p>
  
  <p>I started an empty project in visual studio c++ 2010. 
  Property manager-> Added under C/C++ -> Additional include directories:</p>
  
  <pre><code>* C:\Program Files (x86)\opencv\build\include
  * C:\Program Files (x86)\opencv\build\include\opencv
  * C:\Program Files (x86)\opencv\build\include\opencv2
  </code></pre>
  
  <p>Property manager-> LInker -> Additional include directories -> </p>
  
  <pre><code>* C:\Program Files (x86)\opencv\build\x64\vc10\lib;
  * C:\Program Files (x86)\opencv\build\x64\vc10\bin; 
  * %(AdditionalLibraryDirectories)
  </code></pre>
  
  <p>Property Manager -> Linker -> Input -> Additional dependencies -></p>
  
  <pre><code>* opencv_calib3d244d.lib
  * opencv_contrib244d.lib
  * opencv_core244d.lib
  * opencv_features2d244d.lib
  * opencv_flann244d.lib
  * opencv_gpu244d.lib
  * opencv_haartraining_engined.lib
  * opencv_highgui244d.lib
  * opencv_imgproc244d.lib
  * opencv_legacy244d.lib
  * opencv_ml244d.lib
  * opencv_nonfree244d.lib
  * opencv_objdetect244d.lib
  * opencv_photo244d.lib
  * opencv_stitching244d.lib
  * opencv_ts244d.lib
  * opencv_video244d.lib
  * opencv_videostab244d.lib
  </code></pre>
  
  <p>Property manager -> COnfiguration manager -> ACtive Solution platform -></p>
  
  <ul>
  <li>Changed from win32 to "new", where I changed from Itanium To x64. Copy settings from "win32"</li>
  </ul>
  
  <p>From the zip-file that you can download at flandmarks homepage, I copy the files in the folder "libflandmark". to my project folder. And I also copy the dat-file to the project folder.</p>
  
  <pre><code>* flandmark_detector.cpp
  * flandmark_detector.h
  * liblbp.cpp
  * liblbp.h
  * msvc-compat.h
  * flandmark_model.dat
  </code></pre>
  
  <p>I created a main.cpp where I added:</p>
  
  <pre><code>#include "stdio.h"
  #include "flandmark_detector.h"
  
  
  int main(int argc, char * argv[]) 
  { 
      printf("test");
      FLANDMARK_Model * model = flandmark_init("flandmark_model.dat");
  
      return 0;
  }
  </code></pre>
  
  <p>After this the error is:</p>
  
  <pre><code>1&gt;  All outputs are up-to-date.
  1&gt;main.obj : error LNK2019: unresolved external symbol "struct model_struct * __cdecl flandmark_init(char const *)" (?flandmark_init@@YAPEAUmodel_struct@@PEBD@Z) referenced in function main
  1&gt;C:\projects\test_projects\flandmarks_empty\x64\Debug\flandmarks_empty.exe : fatal error LNK1120: 1 unresolved externals
  1&gt;
  1&gt;Build FAILED.
  1&gt;
  1&gt;Time Elapsed 00:00:04.47
  ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
  </code></pre>
  
  <p>Thanks for reading!</p>