DEBUG_NEW [modified]
-
in vc2008:
#include <fstream> #ifdef _DEBUG #define new DEBUG_NEW #endif
----compile success#ifdef _DEBUG #define new DEBUG_NEW #endif #include <fstream>
----compile error d:\program files\microsoft visual studio 9.0\vc\include\xdebug(32) : error C2365: “operator new”: redefinition..... can anybody explain?modified on Wednesday, January 20, 2010 7:14 PM
-
in vc2008:
#include <fstream> #ifdef _DEBUG #define new DEBUG_NEW #endif
----compile success#ifdef _DEBUG #define new DEBUG_NEW #endif #include <fstream>
----compile error d:\program files\microsoft visual studio 9.0\vc\include\xdebug(32) : error C2365: “operator new”: redefinition..... can anybody explain?modified on Wednesday, January 20, 2010 7:14 PM
one of those #includes is defining its own version of new ?
-
one of those #includes is defining its own version of new ?
but why: #include #ifdef _DEBUG #define new DEBUG_NEW #endif ----can compile success?