opencv libraries
The compiler can not find a description of these two externals: imshow(), cv::CascadeClassifier::CascadeClassifier()
I connected all the lib files that I had
there are error messages which I got:
1)LNK2019 unauthorized external character reference "void __cdecl cv::imshow(class std::basic_string<char,struct std::char_traits<char="">,class std::allocator<char> > const &,class cv::debug_build_guard::_InputArray const &)" (?imshow@cv@@YAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBV_InputArray@debug_build_guard@1@@Z) in function main
2)LNK2019 unauthorized external character reference "public: __cdecl cv::CascadeClassifier::CascadeClassifier(class std::basic_string<char,struct std::char_traits<char="">,class std::allocator<char> > const &)" (??0CascadeClassifier@cv@@QEAA@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) in function main
imgshow(),
is a typo, should beimshow()
, which should be covered byopencv_highgui400d.lib
CascadeClassifier is in objdetect.
but this means, it's not a linker but a compiler problem. you fail to include the corresponding headers in your c++ code.
please add the exact error msg
it's on russia
Ошибка LNK2019 ссылка на неразрешенный внешний символ "public: __cdecl cv::CascadeClassifier::CascadeClassifier(class std::basic_string<char,struct std::char_traits<char="">,class std::allocator<char> > const &)" (??0CascadeClassifier@cv@@QEAA@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) в функции main TrueTrueOpencv C:\Users\Lebedev'ml\source\repos\TrueTrueOpencv\TrueTrueOpencv\Source.obj
Ошибка LNK2019 ссылка на неразрешенный внешний символ "void __cdecl cv::imshow(class std::basic_string<char,struct std::char_traits<char="">,class std::allocator<char> > const &,class cv::debug_build_guard::_InputArray const &)" (?imshow@cv@@YAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBV_InputA
I include this :
include "opencv2/opencv.hpp"
include "opencv2/face.hpp"
include "drawLandmarks.hpp"
include "opencv2/opencv_modules.hpp"
could you put all of that into your question (where it can be properly formatted) ?
I don't understand
nvm, not so important.
What version of OpenCV are you using? There is a statement you can put in your code, like this:
... where 3.4.0 is the version I use.
i think it's 4.0.0 version because I include libraries with names like video400d.lib
oooh, @sjhalayka please DO NOT recommend that idea any further. its entirely NOT portable, and what about release ?
I set up Release as well as Debug, but the release shows 9 errors associated with external characters. I also use x64 version of windows