C++11 on Mac with Clang or GCC

后端 未结 3 1066
陌清茗
陌清茗 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条回答
  •  旧时难觅i
    2021-02-19 08:44

    As you found, g++ does not support those command line options.

    It sounds like you're using Xcode.

    For clang, you should look at the project settings, and make sure that the "Deployment Target" is set to 10.7 (or 10.8)

    What the error message is telling you is that libc++ is not available for 10.6 and before.

提交回复
热议问题