I was trying to use opencv 3.4 within a plain C program using MinGW/Eclipse on a Wondows 10 PC. Compilation and installation of opencv worked nicely following the instructions here, but when I just include libs, headers etc. in my eclipse project settings, I get an
C:/opencv/MinGW_build/install/include/opencv2/imgproc/imgproc_c.h:1041: undefined reference to cvRound
(with many warnings prior to it)
My compile command was
gcc "-IC:\\opencv\\MinGW_build\\install\\include" "-IC:\\opencv\\MinGW_build\\install\\include\\opencv2" "-IC:\\opencv\\MinGW_build\\install\\include\\opencv" -O0 -g3 -Wall -c -fmessage-length=0 -o "src\\opencv_c_testproject.o" "..\\src\\opencv_c_testproject.c"
I used the sample code from here.
After digging through a few posts the problem might be dropped support for C in opencv 3? Or did I just mess up my configuration?
A simple c++ project works nicely using my build.
Any help is appreciated.