Error LNK2019,..when use Mat, How to solve it?

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Error LNK2019,..when use Mat, How to solve it?

opencv-users mailing list
When use Mat in opencv, there will be an error LNK2019: unresolved external symbol "int __cdecl cv::_interlockedExchangeAdd(int *,int)" (?_interlockedExchangeAdd@cv@@YAHPAHH@Z),... "public: class cv::Mat & __thiscall cv::Mat::operator=(class cv::Mat const &)" (??4Mat@cv@@QAEAAV01@ABV01@@Z) ....
How to solve this matter?
Reply | Threaded
Open this post in threaded view
|

Re: Error LNK2019,..when use Mat, How to solve it?

opencv-users mailing list
I add all the lib, Project -> Properties -> Linker -> Input -> Additional Dependencies : 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
 

 All is working well, but use Mat. as soon as use this class, the problem occured...

Reply | Threaded
Open this post in threaded view
|

Re: Error LNK2019,..when use Mat, How to solve it?

opencv-users mailing list
Any specialist out there? pls help out, how to sove this problem?
any lib was lost?
Reply | Threaded
Open this post in threaded view
|

Re: Error LNK2019,..when use Mat, How to solve it?

opencv-users mailing list
In reply to this post by opencv-users mailing list
Hi jkZh,

It seems your Builder software is not finding the dlls, or the correct ones.

In order to help you, I need you to provide a bit of additional information:
What OpenCV version are U using?
On what OS (Windows, Linux...)?
What is your IDE ? (MS Visual Studio C++, Qt ....?)
If not using the MS-Visual Studio, did you compiled the OpenCV source code
for your specific IDE? for example for Qt?



Thank you
Jaime



2015-08-19 9:45 GMT-03:00 [hidden email] [OpenCV] <[hidden email]>:

>
>
> Any specialist out there? pls help out, how to sove this problem?
> any lib was lost?
>
>



--
Jaime Santo
Mechanical Engineer and Technical Translator
Oil & Gas, Heavy Machinery, Automotive, Manufacture
http://www.translatorscafe.com/cafe/member131785.htm
mobile: +55 19 999-557-554
skype: jaimetcf
Reply | Threaded
Open this post in threaded view
|

Re: Error LNK2019,..when use Mat, How to solve it?

opencv-users mailing list
In reply to this post by opencv-users mailing list
Thank you,
I config well the lib, and add dependence as above,
 Messages 1a Error LNK2019,..when use Mat, How to solve it?
 
 Tue Aug 18, 2015 4:22 am (PDT) . Posted by: "jkZh" cnndt
 
 When use Mat in opencv, there will be an error LNK2019: unresolved external symbol "int __cdecl cv::_interlockedExc hangeAdd( int *,int)" (?_interlockedExcha ngeAdd@cv@ @YAHPAHH@ Z),... "public: class cv::Mat & __thiscall cv::Mat::operator= (class cv::Mat const &)" (??4Mat@cv@@ QAEAAV01@ ABV01@@Z) ....
 How to solve this matter?
 
 
 
 
 Reply to sender . Reply to group . Reply via Web Post . All Messages (2) . Top ^
 
 
 
 
 1b Re: Error LNK2019,..when use Mat, How to solve it?
 
 Tue Aug 18, 2015 5:03 am (PDT) . Posted by: cnndt
 
 I add all the lib, Project -> Properties -> Linker -> Input -> Additional Dependencies : opencv_core246d. lib
 opencv_imgproc246d. lib
 opencv_highgui246d. lib
 opencv_ml246d. lib
 opencv_video246d. lib
 opencv_features2d24 6d.lib
 opencv_calib3d246d. lib
 opencv_objdetect246 d.lib
 opencv_contrib246d. lib
 opencv_legacy246d. lib
 opencv_flann246d. lib
 
 vc2010, xp,
 All is working well, but using Mat. as soon as use this class, the problem occured...  odd enough.
Someone suggests to choose run tine lib on config property, but shown conflict of Zi and clr.