我正在使用gem install nmatrix在Mac (10.11.3 (15D21))上安装nmatrix,并收到以下错误消息:
checking for apparent GNU g++ binary with C++0x/C++11 support...
⏎ Exception `RuntimeError' at extconf.rb:141 - You need a version
⏎ of g++ which supports -std=c++0x or -std=c++11.
⏎ If you're on a Mac and using Homebrew, we recommend
⏎ using mac-brew-gcc.sh to install a more recent g++.nmatrix页面提到了gcc,但没有提到g++,即https://github.com/SciRuby/nmatrix/wiki/Installation
有什么建议吗?
发布于 2016-03-08 23:33:28
g++是GCC的编译器可执行文件
您应该将标志添加到编译设置:
-std=c++0x或
-std=c++11https://stackoverflow.com/questions/35871471
复制相似问题