我发现是opencv的头文件找不到
In file included from main.cpp:3:
dialog.h:5:46: error: usr/local/include/opencv/highgui.h: No such file or directory
dialog.h:6:41: error: usr/local/include/opencv/cv.h: No such file or directory
In file included from main.cpp:3:
dialog.h:33: error: ISO C++ forbids declaration of 'IplImage' with no type
dialog.h:33: error: expected ';' before '*' token
dialog.h:34: error: ISO C++ forbids declaration of 'IplImage' with no type
dialog.h:34: error: expected ';' before '*' token
dialog.h:35: error: ISO C++ forbids declaration of 'IplImage' with no type
dialog.h:35: error: expected ';' before '*' token
dialog.h:36: error: ISO C++ forbids declaration of 'IplImage' with no type
dialog.h:36: error: expected ';' before '*' token
dialog.h:37: error: ISO C++ forbids declaration of 'IplImage' with no type
dialog.h:37: error: expected ';' before '*' token
dialog.h:41: error: 'IplImage' has not been declared