Unresolved <iostream> in Eclipse, Ubuntu

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?



Here's an updated photo of my a project's build path that is working correctly:


The reason is that Eclipse simply cannot import a proper header. C++ iostream header in Ubuntu can be found:

$: sudo find / -name iostream


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.

Need Your Help

How to get namespaced nodes from scala.xml?

scala xml-namespaces

Looking at RSS, something like Craigslist's(http://chambana.craigslist.org/cta/index.rss) gives both nodes that are namespaced and not.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.