linker error in opencv 246 / VS 2010

asked 2013-10-25 16:38:48 -0600

cellar gravatar image

Hello, the error I get while compiling is:

error LNK2019: Reference to unresolved extern symbol ""void __cdecl locateTagCandidates(class cv::Mat &,class std::vector<class cv::rect_<int="">,class std::allocator<class cv::rect_<int=""> > > &)" (?locateTagCandidates@@YAXAAVMat@cv@@AAV?$vector@V?$Rect_@H@cv@@V?$allocator@V?$Rect_@H@cv@@@std@@@std@@@Z)" in Funktion ""void __cdecl updateBlob(int,void *)" (?updateBlob@@YAXHPAX@Z)".

Sorry for just copying this but I cannot identify the important parts of this error... There are numerous similar errors (e.g. "__imp__DecodePointer@4" in Funktion "__onexit".) which will have the same cause I guess.
While searching for the problem I could not find a proper solution but hints that it could have to do with the architecture: I'm running a Win7 64 Bit, VS 2010 32 Bit and am compiling to Win32.
I'd like to add that I at least doublechecked all the installation steps for opencv. I'm happy to check again if you can give a hint but I ask myself why in the whole opencv installation process no single error report has actually any information about whats going wrong..
This does not belong here but: I tried to get this up and running the whole day, starting with a cloned opencv repository, learning that I pulled a version 3 alpha or so after numerous hours of error identification. Seriously guys. Please someone update the installation tutorial (at least for Windows). I bet this would save many people some hours. Thanks for any help in advance (:

edit retag flag offensive close merge delete

Comments

could you shed some light about where 'locateTagCandidates', or 'DecodePointer' are coming from ? is that part of the opencv api, or your own code ?

' undefined reference' errors are always due to not linking something

if that's your own code, you probably forgot to add a cpp file to your project

berak gravatar imageberak ( 2013-10-25 17:52:58 -0600 )edit