Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode tools on Mac support c++11?

Tags:

c++

xcode

macos

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?

like image 292
user2970859 Avatar asked Sep 12 '26 18:09

user2970859


1 Answers

You can use clang with this FLAGS -std=c++11 -stdlib=libc++ to use C++11 features, another similar question can be found here

like image 123
RealityPC Avatar answered Sep 14 '26 08:09

RealityPC



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!