C++11 on Mac with Clang or GCC

后端 未结 3 1045
陌清茗
陌清茗 2021-02-19 08:12

I have Xcode 4.5.2 on Moutain Lion, and I have install the lastest \"Command Line Tools\" but when I tried to compile with g++ or clang++ (and the opti

3条回答
  •  情书的邮戳
    2021-02-19 08:49

    Try -std=c++0x if c++11 doesn't work. Support for the -std=c++11 option is relatively new in GCC and you might not have a recent enough version.

    I'd trust Marshall on the libc++ issue.

提交回复
热议问题