我有Eclipse版本3.8.1,可用来编写Java代码。我最近开始用c \ c ++编写,尝试安装CDT(C \ C ++开发工具)插件时遇到了一些麻烦。
我知道这个问题被问了很多,而且我已经在这里以前的帖子中搜索了答案,但是建议的答案都没有意义,或者没有帮助。
首先,让我简要介绍一下到目前为止我所做的事情:
帮助->安装新软件->“可用软件站点”,然后在首选项窗口中添加以下位置:http : //download.eclipse.org/tools/cdt/releases/kepler/,然后安装了插件。
确实,在重新打开eclipse之后,我现在在“文件->新建...”菜单中有了新的可用选项,例如“ C ++项目/ C项目”等等。
当我选择创建一个新项目时,将显示以下窗口:
然后,我选择“ Linux GCC”(我不知道其余的是什么),并创建一个新的源文件。
问题是这样的:
I'm getting "Unresolved inclusion" to the iostream file, even though I have all the necessary .h files, as you can see in the left pane of the window (under "includes").
Does anyone know what might be the problem, and how to resolve this issue?
Thanks in advanced!
edit:
the errors appear at the bottom pane of the window, and this "binary not found" error pops whenever I try to compile it.
There's also the "unresolved inclusion" I was referring to. it shows it when I hover with the mouse over the "#include" line.
The screenshot only shows that the directories exist, not that the right files within them exist.
To fix these kind of dependency issues:
sudo apt-get --install-suggests install eclipse-cdt
or on yum-based distributions
sudo yum install eclipse-cdt
这应该安装所有必需的依赖项。如果它安装了eclipse-cdt但没有将其所有依赖项都安装在您的发行版上,那么这就是该发行版中的一个错误。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句