LNK2001 fatal error: unresolved external symbols - any ideas ?
Hello,
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 &)" (?showCameraFrame@CameraEngine@@UEAAXAEBVMat@cv@@@Z)". 1>CameraEngine.obj : error LNK2001: unresolved external symbol ""public: virtual void __cdecl CameraEngine::processFrame(class cv::Mat const &,class cv::Mat &)" (?processFrame@CameraEngine@@UEAAXAEBVMat@cv@@AEAV23@@Z)". 1>CameraEngine.obj : error LNK2001: unresolved external symbol ""public: virtual void __cdecl CameraEngine::showProcessedFrame(class cv::Mat const &)" (?showProcessedFrame@CameraEngine@@UEAAXAEBVMat@cv@@@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:
opencv_core246d.lib;opencv_imgproc246d.lib;opencv_highgui246d.lib;opencv_ml246d.lib;opencv_video246d.lib;opencv_features2d246d.lib;opencv_calib3d246d.lib;opencv_objdetect246d.lib;opencv_contrib246d.lib;opencv_legacy246d.lib;opencv_flann246d.lib;
Everything else set for Release options respectively (without the "d" in the linked libs).
Last but not least my code sofar:
Thanks in advance!
which c++ file is CameraEngine::showCameraFrame() in ? you probably forgot to add it to your project
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.