LNK2001 fatal error: unresolved external symbols - any ideas ?

asked 2013-12-30 12:48:46 -0500

danksch gravatar image


I am trying to solve this error for days now and I'm running out of ideas:

CameraEngine.obj : error LNK2001: unresolved external symbol ""public: virtual void __cdecl CameraEngine::showCameraFrame(class cv::Mat const &)" ([email protected]@@[email protected]@@@Z)". 1>CameraEngine.obj : error LNK2001: unresolved external symbol ""public: virtual void __cdecl CameraEngine::processFrame(class cv::Mat const &,class cv::Mat &)" ([email protected]@@[email protected]@@[email protected]@Z)". 1>CameraEngine.obj : error LNK2001: unresolved external symbol ""public: virtual void __cdecl CameraEngine::showProcessedFrame(class cv::Mat const &)" ([email protected]@@[email protected]@@@Z)". 1>C:\Users\Nic\documents\visual studio 2010\Projects\ImageSketcher\x64\Debug\ImageSketcher.exe : fatal error LNK1120: 3 unresolved external symbols.

I'm using opencv 2.4.6 with x64 libraries on a 64bit system with VS2010, also changed debugger from Win32 to x64. I've checked my PATH variable and all the other settings several times now and it's all just set as in the tutorial:

  • OPENCV_DIR: D:\opencv\build
  • PATH: %OPENCV_DIR%\x64\vc10\bin
  • C/C++ - General: $(OPENCV_DIR)\include
  • Linker - General: $(OPENCV_DIR)\x64\vc10\lib
  • Linker - Input:


Everything else set for Release options respectively (without the "d" in the linked libs).

Last but not least my code sofar:

Project at Github

Thanks in advance!

edit retag flag offensive close merge delete


which c++ file is CameraEngine::showCameraFrame() in ? you probably forgot to add it to your project

berak gravatar imageberak ( 2013-12-30 13:07:09 -0500 )edit

oh god...this is so embarassing...i totally missed the forest for the trees right there...thanks a lot for the hint, works like a charm now.

danksch gravatar imagedanksch ( 2013-12-30 15:11:43 -0500 )edit