Brian
Brian

Reputation: 8823

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

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?

Upvotes: 15

Views: 702

Answers (1)

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.

Upvotes: 1

Related Questions