d:/program files/microsoft visual studio/vc98/include/new(35) : error C2061: syntax error : identifier 'THIS_FILE' d:/program files/microsoft visual studio/vc98/include/new(35) : error C2091: function returns function
d:/program files/microsoft visual studio/vc98/include/new(35) : error C2809: 'operator new' has no formal parameters
...
错误原因:
#include <list>
#include <vector>
using namespace std;
要在系统生成的代码
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
之前 using namespace std;
要在系统生成的代码
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
之前