最近由于某些原因,需要重新回到OpenCV1.0时代。安装opencv.exe之后,在编译debug版本的时候,竟然出错了;以前也碰到过类似的问题,但忘记如何解决了;这次记录在这里,以备后需;编译的时候,提示的错误:rror C2039: "foreground_regions" : is not a member of "CvFGDStatModel"error C2039: "foreground_regions" : is not a member of "CvFGDStatModel"error C2039: "foreground_regions" : is not a member of "CvGaussBGModel"解决办法:在cvaux.h文件中,1137行,原本为:CvMemStorage* storage; /*storage for 揻oreground_regions?/ /修改为:CvMemStorage* storage; /*storage for 揻oreground_regions*/完了!推荐阅读:Ubuntu 12.04 安装 OpenCV2.4.2 http://www.linuxidc.com/Linux/2012-09/70158.htmCentOS下OpenCV无法读取视频文件 http://www.linuxidc.com/Linux/2011-07/39295.htmUbuntu 12.04下安装OpenCV 2.4.5总结 http://www.linuxidc.com/Linux/2013-06/86704.htmUbuntu 10.04中安装OpenCv2.1九步曲 http://www.linuxidc.com/Linux/2010-09/28678.htm基于QT和OpenCV的人脸识别系统 http://www.linuxidc.com/Linux/2011-11/47806.htm