x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

c++ compiler version

What Version of C++ is supported when I want to be able to have a fully cross compilable game working on PC,Mac,Android and iOS ? What is the least common denominator, what compiler version are used for this ?

Product Version: Not Selected
Tags:
more ▼

asked Jun 30 '14 at 09:55 AM in C++ Programming

avatar image

Extrawurst
6 1 2 4

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

We use the following C++11 features in UE4:

  • nullptr

  • auto

  • Range-based-for

  • Lambdas (although stateful lambdas can't be used with our delegates... yet)

  • override/final

I think you could also use variadic templates if you don't care about VS2012 support.

VS2012 is the compiler with the most incomplete C++11 implementation that UE4 supports.

more ▼

answered Jun 30 '14 at 10:00 AM

avatar image

Jamie Dale STAFF
7.3k 176 66 304

avatar image Extrawurst Jun 30 '14 at 10:51 AM

Not quiet sure what to think now. if i am building an android build using UE4 what compiler version is used then? Why would I use VS2012 ? Is VS2013 not supported ?

avatar image Jamie Dale STAFF Jun 30 '14 at 10:58 AM

All of our non-Microsoft platforms use Clang, so Android would be using Clang.

I mentioned VS2012 because we still support it for Microsoft platforms, and it is the worst compiler in terms of C++11 feature support. If you have VS2013 available then we definitely recommend using that as it has much better C++11 feature support (like variadic templates, which should also work on Clang).

avatar image Extrawurst Jun 30 '14 at 11:01 AM

We are getting there, so what clang version is it and is it bundled in the UE4 toolchain and is it the same clang version for android/ios ?

avatar image Jamie Dale STAFF Jun 30 '14 at 11:12 AM

Below is the result of "clang --version". I'm not sure if we bundle these with UE4, but I imagine they come from the Android SDK and Xcode.

Android: "clang version 3.4"

OS X/iOS: "LLVM version 5.1 (clang 503.0.40)" (Apparently this is actually based on LLVM 3.4svn).

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question