Unresolved inclusion: <iostream> in eclipse on mac

那年仲夏 提交于 2019-12-29 01:39:10

问题


Eclipse will not allow me to include <iostream>. I'm on a mac and when I try the same thing using xcode it works. I'm running eclipse Indigo and I've tried both the MAc OS X compiler option and the cross platform one.


回答1:


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

Right click on project -> Properties -> C/C++ General -> Paths and Sympols -> GNU C++ (under Languages column in Includes) -> Add

I added the following (the ones in Bold) -- I think the second one is what you need:



来源:https://stackoverflow.com/questions/11543198/unresolved-inclusion-iostream-in-eclipse-on-mac

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!