返回首页
当前位置: 主页 > 网络编程 > Jsp实例教程 >

eclipse – unresolved inclusion: <stdio.h>

时间:2016-12-10 22:34来源:知行网www.zhixing123.cn 编辑:麦田守望者

eclipse上配置好cdt后,新建一个简单的项目测试下,当写入头文件时,却出现如下错误提示:

unresolved inclusion: <stdio.h>

原因与解决:

这是c/c++标准库未设置所致。解决方法如下。

选中项目,依次操作:

右键单击 -> properties -> C/C++ General -> Paths and Symbols -> Add…  -> file system.

然后选择c/c++库的位置:/usr/include

如此再继续添加/usr/include/c++路径。确定后即可

参考:

Eclipse reports Unresolved inclusion for system headers such as stdio.h if it cannot locate the header files for a project. You can resolve this by right-clicking on the project in the Project Explorer view and then selecting Properties… from the context menu. In the dialog box, select: C/C++ General → Paths and Symbols → Add… and then add the path to the ARM Compiler headers on your host workstation. For example, C:Program FilesDS-5include. Select both Add to all configurations and Add to all languages, click on Apply so that Eclipse can rebuild the index.

顶一下
(0)
0%
踩一下
(0)
0%
标签(Tag):java环境变量 Java 配置环境变量
------分隔线----------------------------
------分隔线----------------------------
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
表情:
验证码:点击我更换图片