简体   繁体   English

Mac上的Xcode工具支持c ++ 11吗?

[英]Xcode tools on Mac support c++11?

I do most of my coding using Qt in C++ and have noticed that I get x86 architecture not found errors when I enable support for C++11 in my Qt .pro files. 我在C ++中使用Qt编写了大部分编码,并注意到当我在Qt .pro文件中启用对C ++ 11的支持时,我发现x86架构未找到错误。

I have the latest Ver of Xcode and have developer tools installed. 我有最新的Xcode版本并安装了开发人员工具。 I realize that OSX uses clang but it still seems that I am still stuck with OSX only supporting earlier versions of gcc. 我意识到OSX使用了clang,但似乎我仍然坚持OSX只支持早期版本的gcc。

Is there a reason we can't get these updates from Xcode, and if not I guess I need to install these updates myself? 有没有理由我们无法从Xcode获取这些更新,如果没有,我想我需要自己安装这些更新?

你可以使用这个FLAGS -std=c++11 -stdlib=libc++ clang来使用C ++ 11的功能, 这里可以找到另一个类似的问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM