2015-10-27 59 views
4

我试图在XCode 7.0.1中使用C++ 14,并且它不工作。我试图使用的std :: string文字和我收到的错误:使用XCode 7.0.1无法获得C++ 14

Invalid suffix on literal; C++11 requires a space between literal and identifier. 

由于这是应该使用C++ 14为什么我收到此错误?我试着在XCode周围寻找设置或其他东西,但我找不到任何东西。我也尝试在网上寻找答案,但所有答案都与早期版本的XCode相关。

这里有一个图: Error Message

回答

13

尝试改变“C++语言方言”在您的构建设置设置。现在它可能被设置为C++ 11,但应该更改为C++ 14。

enter image description here

应该是:

enter image description here