本文介绍了Visual C ++ .Net:找不到'stdlib.h'?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我最近安装了Visual Studio .Net 2003,我正在尝试编译

并运行一个简单的Windows窗体应用程序(使用VS向导)。当试图运行我

得到一条错误消息告诉我:致命错误C1083:无法打开包含

文件:''stdlib.h'':没有这样的文件或目录。我浏览过C:\Program

Files \ Microsoft Visual Studio .NET 2003 \Vc7 \ include并找到了文件

那里。


有什么不对?我也尝试卸载并重新安装。


祝你好运

P?¥l Eilertsen

解决方案




Visual Studio .NET 2003(C ++ )不再支持许多旧的.h标题

(Visual Studio .NET 2002),而是支持新标题。标准标题

,如cstdlib。试试#include< cstdlib>在你的代码中代替#include

< stdlib.h> ;.

希望这会有所帮助。


-

彼得[MVP视觉开发者]

所有行业的杰克,无人掌握。




实际上,stdlib.h(和所有C90子集头)文件)是C ++ 98的一部分,

和stdlib.h用VC ++ 2003编译。


-

Ioannis Vranos




实际上,stdlib.h(和所有C90子集头)文件)是C ++ 98的一部分,
和stdlib.h用VC ++ 2003编译。

-
Ioannis Vranos



Hi,

I have recently installed Visual Studio .Net 2003 and am trying to compile
and run a simple windows form app (used the VS wizard). When trying to run I
get an error message telling me: "fatal error C1083: Cannot open include
file: ''stdlib.h'': No such file or directory". I have browsed to C:\Program
Files\Microsoft Visual Studio .NET 2003\Vc7\include and have found the file
there.

What can be wrong? I have also tried to uninstall and reinstall.

Best regards
P?¥l Eilertsen

解决方案



Visual Studio .NET 2003 (C++) no longer supports many of the old .h headers
(Visual Studio .NET 2002 did), instead supporting the "new" standard headers
such as cstdlib. Try #include <cstdlib> in your code in place of #include
<stdlib.h>.
Hope this helps.

--
Peter [MVP Visual Developer]
Jack of all trades, master of none.



Actually, stdlib.h (and all C90 subset header files) are part of C++98,
and stdlib.h compiles with VC++ 2003.

--
Ioannis Vranos



Actually, stdlib.h (and all C90 subset header files) are part of C++98,
and stdlib.h compiles with VC++ 2003.

--
Ioannis Vranos



这篇关于Visual C ++ .Net:找不到'stdlib.h'?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-26 16:11