Hello, I want to use opencv in a C program. There is my code
#include "highgui.h"
#include "cv.h"
int main() {
}
But I got this error :
In file included from /usr/local/include/opencv2/core/core_c.h:48:0,
from /usr/local/include/opencv/highgui.h:45,
from opencv-test.c:6:
/usr/local/include/opencv2/highgui/highgui_c.h:139:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
CVAPI(cv::Rect)cvGetWindowImageRect(const char* name);
I looked at it on internet but I got no results. I think it's about a "::" operator in C code but I don't know how to fix it. I don't want to use C++ (because the project I'm working on require C). Any help thank you.