Unauthorized inclusion: <iostream> in eclipse on mac

Eclipse will not allow the inclusion of <iostream> . I am on a mac, and when I try to use the same using xcode, it works. I run eclipse Indigo and I tried both the MAc OS X compiler option and the cross-platform one.

+4
source share
1 answer

I solved this by manually adding the path to iostream in my project:

Right click on the project -> Properties -> C / C ++ General -> Paths and Symbols -> GNU C ++ (in the Languages ​​column in the Enable) -> Add

I added the following (those in bold) - I think the second is what you need:

screenshot of my elcipse settings

+6
source

All Articles