2014-05-01 03:44:41 -0600 | asked a question | cannot use c++ methods of openCV 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 ? |