Error LNK2001 'Unresolved external symbol "public: __cdecl cv::detail::CameraParams::CameraParams(struct cv::detail::CameraParams const &)" CalibrationGUI D:\Performance_capt\source\MainprojectGUI\Mainproject.obj

asked 2018-11-27 02:33:50 -0500

After adding opencv in my c++ project, when building my main project i got the following error:

Severity    Code    Description Project File    Line    Suppression State
Error   LNK2001 unresolved external symbol "public: __cdecl cv::detail::CameraParams::CameraParams(struct cv::detail::CameraParams const &)" (??0CameraParams@detail@cv@@$$FQEAA@AEBU012@@Z)    CalibrationGUI  D:\Performance_capt\source\CalibrationGUI\CalibrationGUI.obj    1

All subprojects build properly, but main project has the error above. I suspect that something has to do with a library not linked from opencv. Its my first c++ project so any help would be crucial.

edit retag flag offensive close merge delete

Comments

Use cmake to build opencv project

LBerger gravatar imageLBerger ( 2018-11-27 07:32:16 -0500 )edit

I have build opencv. I added dependencies in property files , linker->General : C:\opencv\opencv\build\x64\vc14\lib, in c/c++ general, and library directories etc. The build folder is also contained in opencv folder. I got multiple of these errors, on main project, yet all subprojects build smoothly(based on same property files). Any idea? i am new in opencv so any hint would be helpful

jackal90 gravatar imagejackal90 ( 2018-12-03 05:07:17 -0500 )edit