Yes, it's this question again...
Somehow, I cannot get this issue resolved. Believe it or not, I have experience with Eclipse but only for Java development. I have programmed in C++ using vi but not with Eclipse.
I have installed:
- Ubuntu 12.04
- Eclipse 3.7.2
- GCC 4.6.3
- Eclipse CDT 8.0.2
I created an empty Makefile project and selected the Linux GNU Toolchain:
I get the standard Unresolved inclusion <iostream>
error, and I have some references to various "include" directories in the project:
I did notice that, while my "Paths and Symbols" setting for GNU C contains various paths, the same setting for GNU C++ is empty:
Also, I have the "GNU Elf Parser" under my C/C++ build settings:
What am I doing wrong here?
Cheers
Edit:
Here's an updated photo of my a project's build path that is working correctly:
Yes, I have found that using
and adding the includes file in the includes path and then it success.
The reason is that Eclipse simply cannot import a proper header. C++ iostream header in Ubuntu can be found:
So basically, I suppose the one you are looking for is
/usr/include/c++/4.6/iostream
, so you should in some place include this directory.Edit: You should also have installed g++, or simply install build-essential package, which is obligatory for building debian packages. Nevertheless, g++ should have been included in your Ubuntu installation anyway.