据说这是个古老的bug
在cvaux.h文件中,
搜索关键字foreground_regions,
第1137行
CvMemStorage* storage; /*storage for 揻oreground_regions?/ \
CvSeq* foreground_regions /*foreground object contours*/
改为如下形式:
CvMemStorage* storage; /*storage for foreground_regions*/ \
CvSeq* foreground_regions /*foreground object contours*/
这样错误就消失了.开源的果然有bug呀.真是需要不断探索了
而且每一行后面的这些"\"是表下一行是上一行的接续.如
define可以替代多行的代码,例如MFC中的宏定义(非常的经典)
#define MACRO(arg1, arg2) do { \
/* declarations */ \
stmt1; \
stmt2; \
/* ... */ \
} while(0) /* (no trailing ; ) */
关键是要在每一个换行的时候加上一个"\"
哎, 都古老错误了,我还没注意到!
但是选择Rebuild All时,不知怎回事,highgui的动态链接库没有生成功。直接只对该类重新编译了,有了,至此都编译成功。终于可以进入调试了。
另外,如果你拷贝到了其他路径来完成的编译,当然要在vc6.0中指明库文件放置地方。
环境变量也要更改bin文件所在的路径。