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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章