当前位置: 首页 > news >正文

做任务领游戏的网站/最新网络推广平台

做任务领游戏的网站,最新网络推广平台,免费做三级网站有哪些,985短网址生成Eclipse 中新建C 或C 到项目时&#xff0c;头文件报警&#xff0c;显示“Unresolved inclusion:<stdio.h>” 虽然不影响项目到编译和运行&#xff0c;确也无法查看头文件&#xff0c;让人感觉实在不爽。下面是在国外到网站上看到解决方案&#xff0c;自己整理了一下拿来分…

 Eclipse 中新建C 或C ++到项目时,头文件报警,显示“Unresolved inclusion:<stdio.h>” 虽然不影响项目到编译和运行,确也无法查看头文件,让人感觉实在不爽。下面是在国外到网站上看到解决方案,自己整理了一下拿来分享一下。关于在Eclipse 下配置C /C ++ 开发环境这里不多说了。

 在终端下查看C 库文件到路径:

$ echo "int main() { return 0; }" > a1.c

$ gcc -v a1.c

 

#include "..." 搜索从这里开始:
#include <...> 搜索从这里开始:

 /usr/lib/gcc/i686-linux-gnu/4.6.1/include
 /usr/local/include
 /usr/lib/gcc/i686-linux-gnu/4.6.1/include-fixed
 /usr/include/i386-linux-gnu
 /usr/include

搜索列表结束。

……

查看C++ 库文件到搜索路径:

$ echo "int main() { return 0; }" > a1.cpp

$ g++ -v a1.cpp

#include "..." 搜索从这里开始:
#include <...> 搜索从这里开始:
 /usr/include/c++/4.6
 /usr/include/c++/4.6/i686-linux-gnu/.
 /usr/include/c++/4.6/backward
 /usr/lib/gcc/i686-linux-gnu/4.6.1/include
 /usr/local/include
 /usr/lib/gcc/i686-linux-gnu/4.6.1/include-fixed
 /usr/include/i386-linux-gnu
 /usr/include
搜索列表结束。

 

在eclipse中菜单Window --> Preferences --> C/C++ --> Build --> Environment添加环境变量

C_INCLUDE_PATH =/usr/lib/gcc/i686-linux-gnu/4.6.1/include:/usr/local/include:/usr/lib/gcc/i686-linux-gnu/4.6.1/include-fixed:/usr/include/i386-linux-gnu:/usr/include

CPLUS_INCLUDE_PATH =/usr/include/c++/4.6:/usr/include/c++/4.6/i686-linux-gnu/.:/usr/include/c++/4.6/backward:/usr/lib/gcc/i686-linux-gnu/4.6.1/include:/usr/local/include:/usr/lib/gcc/i686-linux-gnu/4.6.1/include-fixed:/usr/include/i386-linux-gnu:/usr/include

记得选中下面的Append variables to native environment.

添加完后重启Eclipse 新建项目即可。

 

 

 

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 Files\DS-5\include. Select both Add to all configurations and Add to all languages, click on Apply so that Eclipse can rebuild the index.

转载于:https://www.cnblogs.com/dongxiaoguang/archive/2013/02/13/2910870.html

http://www.jmfq.cn/news/4817953.html

相关文章:

  • 广饶网站建设/2021友情链接qq群
  • 湖州市建设局政府网站/上海百度首页优化
  • 建设p2p网站/营销型网站开发公司
  • 做网站优化企业/网页模板建站系统
  • 大学生做网站兼职/网站关键词优化培训
  • wordpress 生成地区/seo怎么推排名
  • 国外做展台搭建的设计网站/品牌设计公司排名前十强
  • 广东建设官方网站/今日微博热搜榜前十名
  • 个人网站设计提纲/网络营销企业网站推广
  • 武汉市城市建设档案馆网站/程序员培训机构排名
  • 网站建设需求填表/百度指数如何提升
  • 广州 网站设计/seo排名赚app靠谱吗
  • 做外卖的网站/镇海seo关键词优化费用
  • 河南工程建筑信息网/首页优化排名
  • 哪个网站可以做java项目/上海网优化seo公司
  • 域名备案网站负责人/手机关键词点击排名软件
  • 模板建网站哪个品牌好/seo技术培训班
  • 移动端网站开发框架/长春网站优化平台
  • 仙居网站制作/写软文
  • 网站管理员怎么做板块建设/外链怎么发
  • 盐城网站制作哪家好/泸州网站seo
  • 中国小康建设网官方网站/北京昨天出啥大事了
  • 公司网站做的好的/无代码免费web开发平台
  • 做网站的任务书/搜外seo视频 网络营销免费视频课程
  • php企业网站程序/黑帽seo技术培训
  • 大兴区制作网站的公司/东莞百度seo新网站快速排名
  • 配音秀做素材网站/线上运营的5个步骤
  • 网站卖东西怎么做的/口碑营销
  • 龙南建设局网站/廊坊seo外包
  • php动态网站开发是什么/站长素材音效