John Smith
John Smith

Reputation: 363

Xcode support of lambda functions

I have a program coded in VS that I'm trying to port over to Xcode. There are several issues I have ran into including use of lambda functions. Since Xcode uses gcc 4.2 and thus doesn't support C++11, will I not be able to use any lambda functions?

If I want to work on the code from my laptop without rewriting much of the code, will I have to install gcc 4.6 and compile using the terminal?

Upvotes: 6

Views: 1225

Answers (1)

user405725
user405725

Reputation:

You have few options:

  • Re-write your code to the C++ 2003 standard.
  • Install GCC that supports C++11 features being used in the code and not use Xcode (you may use other IDEs, for example QtCreator or Eclipse CDT).
  • Wait for Xcode that comes with LLVM C++ compiler that supports C++11 features.

Upvotes: 2

Related Questions