Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Undefined reference to cvLog, cvCartToPolar

I'm having a few undefined reference errors trying to compile my Qt project, which uses openCV 3.0 static libraries

C:\Programs\opencvMinGW\install\x64\mingw\staticlib\libopencv_imgproc300.a(imgwarp.cpp.obj):imgwarp.cpp:(.text$cvLogPolar+0x68b): undefined reference to `cvCartToPolar'

C:\Programs\opencvMinGW\install\x64\mingw\staticlib\libopencv_imgproc300.a(imgwarp.cpp.obj):imgwarp.cpp:(.text$cvLogPolar+0x6c9): undefined reference to `cvLog'

C:/Qt/Tools/mingw491_32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/bin/ld.exe: C:\Programs\opencvMinGW5\install\x64\mingw\staticlib\libopencv_imgproc300.a(imgwarp.cpp.obj): bad reloc address 0x6c9 in section `.text$cvLogPolar'

Also, I'm not directly using cvLog() nor cvCartToPolar() in my program. I haven't been able to find any solutions so far on the web, so any help would be greatly appreciated!