最近、Macbook ProにMacportsをインストールし、gcc47
ポートをインストールしました。を追加alias g++="g++-mp-4.7"
して.profile
使用していることを確認した後g++-4.7
、C++11を使用するプロジェクトの1つを構築しようとしました。ただし、次のエラーが発生します。
cc1plus: error: unrecognized command line option "-std=c++11"
MacportsがC++をサポートするgccを構築したので、これは奇妙だと思います。したがって、C++11は問題なく動作するはずです。下から出力を貼り付けましたg++ -v
。なぜ有効な選択肢としてg++-mp-4.7
認識されないのかについて、何か考えはありますか?-std=c++11
COLLECT_GCC=g++-mp-4.7
COLLECT_LTO_WRAPPER=/opt/local/libexec/gcc/x86_64-apple-darwin12/4.7.1/lto-wrapper
Target: x86_64-apple-darwin12
Configured with: ../gcc-4.7.1/configure --prefix=/opt/local --build=x86_64-apple-darwin12 --enable-languages=c,c++,objc,obj-c++,lto,fortran,java --libdir=/opt/local/lib/gcc47 --includedir=/opt/local/include/gcc47 --infodir=/opt/local/share/info --mandir=/opt/local/share/man --datarootdir=/opt/local/share/gcc-4.7 --with-libiconv-prefix=/opt/local --with-local-prefix=/opt/local --with-system-zlib --disable-nls --program-suffix=-mp-4.7 --with-gxx-include-dir=/opt/local/include/gcc47/c++/ --with-gmp=/opt/local --with-mpfr=/opt/local --with-mpc=/opt/local --with-ppl=/opt/local --with-cloog=/opt/local --enable-cloog-backend=isl --enable-stage1-checking --disable-multilib --enable-lto --with-as=/opt/local/bin/as --with-ld=/opt/local/bin/ld --with-ar=/opt/local/bin/ar --with-bugurl=https://trac.macports.org/newticket --disable-ppl-version-check --with-pkgversion='MacPorts gcc47 4.7.1_2'
Thread model: posix
gcc version 4.7.1 (MacPorts gcc47 4.7.1_2)