Xcode 4.2 doesn't recognize C ++ string literals?

I am trying to pick up the basics of C ++ 11. I have Xcode 4.2 on my mac that uses the LLVM 3.0 compiler. From what I read, it should support the original string literals (ie R"(...)" ), but when I try to compile something with them, it hurts me. I installed it for C ++ 0x (I included -std=c++0x and the libC ++ library), and I know that it works with other C ++ 0x functions, such as the for-loop range.

Is there anything that I am missing here?

+4
source share
1 answer

Sad Apple clang 3.0 (which comes with Xcode 4.2)! = Clang 3.0 ( which supports string string literals .)

You will need to wait for a later version of Xcode or create more recent versions of clang / llvm / lib ++ from the source .

+4
source

Source: https://habr.com/ru/post/1385051/


All Articles