xdebug(32) : error C2365:错误

错误:vc\include\xdebug(32) : error C2365: 'operator new' : redefinition; previous definition was 'function'

由于
#ifdef _DEBUG
#define new DEBUG_NEW
#endif

#include <opencv.hpp>  

请把#include 放在_DEBUG之前

正确的应该是

#include <opencv.hpp>  

#ifdef _DEBUG
#define new DEBUG_NEW
#endif
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章