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的后边就可以了
#ifdef _DEBUG
#define
new DEBUG_NEW
#undef
THIS_FILE
static
char
THIS_FILE[]
=
__FILE__;
#endif
解决_CDebugHeapTag错误
本文解决了Microsoft Visual Studio .NET 2003中VC7编译器出现的关于'_DebugHeapTag'的语法错误问题,通过调整宏定义的位置来避免编译错误。

15万+

被折叠的 条评论
为什么被折叠?



