Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Opencv 2.4.3 linker errors, using visual studio.

Basically I get 100s of linker errors when I try to load a simple test, I included the include directory correctly as well as the library (\build\x86\vc10\staticlib directory. However I get these errors:

1>main.obj : warning LNK4217: locally defined symbol ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@N@Z (public: class std::basic_ostream<char,struct std::char_traits<char=""> > & __thiscall std::basic_ostream<char,struct std::char_traits<char=""> >::operator<<(double)) imported in function _main 1>main.obj : warning LNK4217: locally defined symbol ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@H@Z (public: class std::basic_ostream<char,struct std::char_traits<char=""> > & __thiscall std::basic_ostream<char,struct std::char_traits<char=""> >::operator<<(int)) imported in function _main 1>opencv_core243d.lib(dxt.obj) : error LNK2001: unresolved external symbol ___security_cookie 1>opencv_imgproc243d.lib(color.obj) : error LNK2001: unresolved external symbol ___security_cookie

(and so on till I get fatal error LNK1120: 318 unresolved externals). The actual library list I imported into the project is:

opencv_calib3d243d.lib
opencv_contrib243d.lib
opencv_core243d.lib
opencv_features2d243d.lib
opencv_flann243d.lib
opencv_gpu243d.lib
opencv_haartraining_engined.lib
opencv_highgui243d.lib
opencv_imgproc243d.lib
opencv_legacy243d.lib
opencv_ml243d.lib
opencv_nonfree243d.lib
opencv_objdetect243d.lib
opencv_photo243d.lib
opencv_stitching243d.lib
opencv_ts243d.lib
opencv_video243d.lib
opencv_videostab243d.lib

What goes wrong? What step am I missing to include?