d:/Microsoft Visual Studio .NET 2003/Vc7/include/xlocmon(249) : error C2061: syntax error : identifier '_DebugHeapTag' d:/Microsoft Visual Studio .NET 2003/Vc7/include/xlocmon(247) : while compiling class-template member function 'size_t std::moneypunct<_Elem,_Intl>::_Getcat(const std::locale::facet ** )' with [ _Elem=char, _Intl=true ] d:/Microsoft Visual Studio .NET 2003/Vc7/include/xlocmon(828) : see reference to class template instantiation 'std::moneypunct<_Elem,_Intl>' being compiled with [ _Elem=char, _Intl=true ]
通常是把这句放在某个include前,改成放在所有include的后边就可以了
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif