i have installed OpenCV 3.10 and the linked the opencv_world310.lib
to release
and opencv_world310d.lib
to debug.
Moreover I put the compiler options in search directory to ...opencv\build\include
. I got a undefined reference error when i left out #include <opencv2/highgui.hpp
. Now that i have included it my code looks like this:
#include <stdio.h>
#include "opencv/cv.h"
#include "opencv/highgui.h"
#include <opencv2/highgui.hpp>
int main(void){
printf("HALLO!");
return 0;
}
When i try to build it core.hpp opens and the error: core.hpp must be compiled in C++
occurs.
I am using the GNU GCC Compiler in Codeblocks.
What should i do to solve the problem?