相关疑难解决方法(0)

包含STL头文件的问题

我在MFC(VS 2008)中创建了基于Dialog的应用程序.当我在Dlg.cpp中执行"#include"时,它显示以下错误.

VS 2008安装中是否缺少某些组件

c:\program files (x86)\microsoft visual studio 9.0\vc\include\xmemory(43) : 
error C2665: 'operator new' : none of the 5 overloads could convert all the argument types

1>        c:\program files (x86)\microsoft visual studio 9.0\vc\include\new.h(85): could be 'void *operator new(size_t,const std::nothrow_t &) throw()'

1>        c:\program files (x86)\microsoft visual studio 9.0\vc\include\new.h(93): or       'void *operator new(size_t,void *)'

1>        while trying to match the argument list '(const char [70], int)'

1>        c:\program files (x86)\microsoft visual studio 9.0\vc\include\xmemory(145) : see reference to function template instantiation …
Run Code Online (Sandbox Code Playgroud)

c++ stl

3
推荐指数
1
解决办法
3706
查看次数

标签 统计

c++ ×1

stl ×1