fatal error C1083: Cannot open include file: ✀stdio.h✀: No such file or directory #include"stdio.h"

怎么回事啊
2024-11-23 05:36:42
推荐回答(2个)
回答1:

打开vc界面 点击VC“TOOLS(工具)”—>“Option(选择)”
—>“Directories(目录)”重新设置“Excutable Fils、Include Files、
Library Files、Source Files”的路径。

如果你是按照初始路径(在C盘)安装vc6.0的,路径应为:
executatble files:
C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin
C:\Program Files\Microsoft Visual Studio\VC98\BIN
C:\Program Files\Microsoft Visual Studio\Common\TOOLS
C:\Program Files\Microsoft Visual Studio\Common\TOOLS\WINNT

include files:
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE
C:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE

library files:
C:\Program Files\Microsoft Visual Studio\VC98\LIB
C:\Program Files\Microsoft Visual Studio\VC98\MFC\LIB

source files:
C:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE
C:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE
C:\Program Files\Microsoft Visual Studio\VC98\CRT\SRC

如果你的软件是在其他盘的话,只要修改一下盘符在对照上述内容找到文件的路径重新设置一下试试。我相信难不倒你的。反正问题肯定是在路径设置上。

回答2:

点C++菜单栏上面的“工具”-“选项”-“目录” 看到路径了吧,新建一个路径 找到你放C++的文件夹,找到\Microsoft Visual Studio\VC98\INCLUDE 点确定就好。