gpt4 book ai didi

eclipse - Unresolved inclusion : in eclipse on mac

转载 作者:太空宇宙 更新时间:2023-11-04 14:09:24 25 4
gpt4 key购买 nike

Eclipse 不允许我包含 <iostream> .我在 Mac 上,当我使用 xcode 尝试同样的事情时,它起作用了。我正在运行 eclipse Indigo,我已经尝试了 MAc OS X 编译器选项和跨平台编译器选项。

最佳答案

我通过手动将 iostream 的路径添加到我的项目中解决了这个问题:

右键单击项目 -> Properties -> C/C++ General -> Paths and Sympols -> GNU C++(在 Includes 的 Languages 列下) -> Add

我添加了以下内容(粗体部分)——我认为第二个是您需要的:

screenshot of my elcipse settings

关于eclipse - Unresolved inclusion : <iostream> in eclipse on mac,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15436205/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com