Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it a good idea to use the latest GCC for iOS development to get c++11 features?

Tags:

xcode

ios

gcc

Can I use, for example, the MacPorts GCC 4.6 to get C++ lambda expressions and other modern features that Clang still lacks? I have read about compiling for OS/X and the limits on 32/64 bit binaries but not about iOS limits.

Will that cause any trouble compiling to iOS?

like image 343
Brian Avatar asked Oct 30 '11 01:10

Brian


1 Answers

It is true that Apple don't care much about GCC anymore (they are going the LLVM route).

However, the GCC developer community is quite professional, and do have members very concerned by making GCC run well on recent MacOSX Apple machines. So I believe they do care about having a recent GCC (ie 4.6.2) work well on MacOSX.

So I would suggest you to build a recent GCC from its latest source.

I don't know anything about iOS, but I would believe that some GCC guys know well it.

like image 183
Basile Starynkevitch Avatar answered Nov 18 '22 03:11

Basile Starynkevitch