简体   繁体   English

Eclipse CDT无法识别<iostream>

[英]Eclipse CDT not recognizing <iostream>

Now I know this means I need to add my include path somewhere. 现在我知道这意味着我需要在某处添加我的包含路径。 So I have gone to properties, C/C++ General, Paths and Symbols, GNU C++ and then I have added /usr/include/c++/4.8 (to debug and release), but intellisense still cant detect and it the project doesn't build. 所以我去了属性,C / C ++通用,路径和符号,GNU C ++,然后我添加了/usr/include/c++/4.8(调试和发布),但intellisense仍然无法检测到它并没有项目没有建立。

Is my include path the correct one for a standard default installation on Linux and did I enter it in the correct Eclipse setting? 我的include路径是否适用于Linux上的标准默认安装,是否在正确的Eclipse设置中输入?

This is on Linux Mint 16 and Eclipse Kepler. 这是在Linux Mint 16和Eclipse Kepler上。

Please make sure that build-essential is installed in your linux 请确保在您的linux中安装了build-essential

sudo dpkg --get-selections | grep build-essential | wc -l

if you get 0 as output then install build-essential 如果输出为0,则安装build-essential

sudo apt-get install build-essential

Then install gcc 然后安装gcc

sudo apt-get install gcc

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM