vs2013+opencv1.0,cvvidsurv.hpp报错C4996

问题:vs2013下使用opencv1.0,include”cvaux.h”后,报错Error 3 error C4996: ‘strdup’: The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details. g:\opencv1.0\opencv\cvaux\include\cvvidsurv.hpp 189 1 energy
解决:修改cvvidsurv.hpp源码,将所有报错的地方前加下划线strdup改为_strdup,注意147行,将cv_XXX改为_XXX

猜你喜欢

转载自blog.csdn.net/sjtuxx_lee/article/details/76407659
今日推荐