Ask Your Question

hanekiwi's profile - activity

2018-02-03 18:51:26 -0600 commented answer C compilation error

I can't upvote because this is my first question and I don't have enough Karma. By the way this is off topic but does so

2018-02-03 18:45:37 -0600 marked best answer C compilation error

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.

2018-02-03 18:45:37 -0600 received badge  Scholar (source)
2018-02-01 04:51:18 -0600 commented answer C compilation error

thank you. This answered my question

2018-02-01 04:40:25 -0600 asked a question C compilation error

C compilation error Hello, I want to use opencv in a C program. There is my code #include "highgui.h" #include "cv.h"