简体   繁体   中英

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.

I have the latest Ver of Xcode and have developer tools installed. I realize that OSX uses clang but it still seems that I am still stuck with OSX only supporting earlier versions of 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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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