Xcode Intel编译器icc找不到#include< algorithm> [英] Xcode Intel compiler icc cannot find #include <algorithm>

查看:386
本文介绍了Xcode Intel编译器icc找不到#include< algorithm>的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用icc编译器(11.1.088)在Xcode上编译基于gcc的代码 但我有以下错误:

catastrophic error: could not open source file "algorithm"

查看此文件后,它位于gcc包含目录中,但是我收到数百个错误...

有人有建议吗?

谢谢.

解决方案

您将基本SDK设置为什么?以及什么版本的Xcode?

FWIW我刚刚尝试了Xcode 3.2.3和ICC 11.1(当然是在OS X 10.6下)的测试-使用标准Xcode模板创建了一个新的C ++控制台应用程序,将#include <algorithm>添加到main.cc,从默认将gcc 4.2转换为ICC,并且它可以编译并运行,而不会发出警告或错误.基本SDK是系统默认版本(10.6).

可能只是您的Xcode和/或ICC安装不正确,或者您更改了项目设置(例如基本SDK),这会引起问题.

Hi I'm trying to compile a gcc based code on Xcode with the icc compiler (11.1.088) but i have the following error:

catastrophic error: could not open source file "algorithm"

After looking to this file, it is located in the gcc include directory, but i get hundreds of errors...

Does anyone have suggestions ?

Thanks.

解决方案

What do you have set as your base SDK ? And what version of Xcode ?

FWIW I just tried a test with Xcode 3.2.3 and ICC 11.1 (under OS X 10.6 of course) - created a new C++ console application using the standard Xcode template, added #include <algorithm> to main.cc, switched from the default gcc 4.2 to ICC, and it compiles and runs without warnings or errors. The base SDK is the system default (10.6).

It may just be that you have a bad installation of Xcode and/or ICC, or perhaps you have changed a project setting such as base SDK, and this is causing problems.

这篇关于Xcode Intel编译器icc找不到#include&lt; algorithm&gt;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆