📜  错误:“CV_WINDOW_AUTOSIZE”未在此范围内声明 - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:58.916000             🧑  作者: Mango

代码示例1
#include 

NOTE:
since all the windowing stuff is in the highgui module, you'll need to include above header.

Example error:
prashad@ubuntu:~/test$ g++ create_ipl_image.cpp   `pkg-config opencv cvblob --cflags --libs` 
create_ipl_image.cpp: In function ‘int main()’:
create_ipl_image.cpp:14:31: error: ‘CV_WINDOW_AUTOSIZE’ was not declared in this scope
      cvNamedWindow( "Image2", CV_WINDOW_AUTOSIZE );