Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version


I am using visual studio 2010 too, and didn't face any problem in compiling these files. I think you have not added one/some of the following paths to project:

  • C/C++ -> Additional Include Directories
  • Linker ->General: Additional Library Directories
  • Linker->Input: AdditionalDependencies

You can also add "opencv" directory to paths instead of changing things like "highgui.h" to "opencv/highgui.h" in code files.

After setting these, I am successfully able to build/execute all files like createsamples.cpp, haartraining.cpp etc.