您的位置:首页 > 编程语言 > C语言/C++

c++ 编译出现error : identifier '_DebugHeapTag'

2020-02-16 17:41 471 查看

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
  • 点赞
  • 收藏
  • 分享
  • 文章举报
netren 发布了1 篇原创文章 · 获赞 0 · 访问量 1106 私信 关注
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: