使用命令行工具6.0在Mac Eclipse CDT上包含无效的路径

时间:2014-09-22 16:29:08

标签: c++ eclipse macos eclipse-cdt

如果您创建C ++ Hello World示例,它将以警告和所谓的错误开始

首先,索引器无法找到iostream,因此没有cout。 警告是:

Invalid project path: Include path not found (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/5.1/include).    
Invalid project path: Include path not found (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/c++/v1).

两个目录都不存在。 对于

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/5.1/include

是正确的

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/6.0/include

对于

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/c++/v1

是正确的

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1

要修复将此目录添加到包含。这仍然不应该发生。这是一个CDT错误,还是新的命令行工具?

0 个答案:

没有答案