cannot use c++ methods of openCV

asked 2014-05-01 03:44:41 -0500

Zet gravatar image

I use QT creator (QT 5.2.1)+MinGW and OpenCV 2.4.8 binaries I try to link opencv libraries in qt creator by following code:

LIBS += -LC:\OpenCV\opencv\build\x86\vc11\lib \ -lopencv_core248d \ -lopencv_highgui248d \ -lopencv_imgproc248d \ -lopencv_ml248d \ -lopencv_video248d

All OK if i use simple C funcitons, like cvLoadImageM("img.jpg"), but when i try to use C++ version of this function imread("img.jpg") i get error that it is undefined.

It seems that there is some linker error, but i don't understand how to fix it... Can you help me ?

edit retag flag offensive close merge delete

Comments

I had the same problem. Please help me.

besic gravatar imagebesic ( 2015-12-14 07:02:36 -0500 )edit