“-std=gnu++0x”option for MacOS

后端 未结 3 1705
予麋鹿
予麋鹿 2021-01-14 01:06

I\'m trying to compile a CMake project which uses

set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} \"-Wall -std=gnu++0x\")

in the CMakeLists.txt fil

3条回答
  •  执笔经年
    2021-01-14 01:42

    GCC 4.2 is ancient, but Apple don't ship a newer version.

    You can either install a modern GCC from somewhere like Mac Ports (which is probably simpler and quicker) or build it yourself following the instructions at http://gcc.gnu.org/wiki/InstallingGCC

提交回复
热议问题