超有挑战性的 error C2661: “operator new”
该工程的release版本编译通过可正确运行;但是debug版本编译出现如下问题(编译器vs2003):
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xmemory(34) : error C2661: “operator new” : 没有重载函数接受 3 个参数
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xmemory(137) : 参见对正在编译的函数模板实例化“_Ty *std::_Allocate::value_type>(size_t,_Ty *)”的引用
with
[
_Ty=std::allocator::value_type
]
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xmemory(136) : 编译类模板成员函数“std::allocator<_Ty>::pointer std::allocator<_Ty>::allocate(std::allocator<_Ty>::size_type)”时
with
[
_Ty=char
]
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xstring(30) : 参见对正在编译的类模板实例化“std::allocator<_Ty>”的引用
with
[
_Ty=char
]
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xstring(46) : 参见对正在编译的类模板实例化“std::_String_val<_Ty,_Alloc>”的引用
with
[
_Ty=char,
_Alloc=std::allocator
]
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\stdexcept(39) : 参见对正在编译的类模板实例化“std::basic_string<_Elem,_Traits,_Ax>”的引用
with
[
_Elem=char,
_Traits=std::char_traits,
_Ax=std::allocator
]
难度在于无法定位错误在工程的源文件中的位置,双击后跳转到库文件中。
各位有什么办法吗?