[英]gem install nmatrix - You need a version of g++ which supports -std=c++0x or -std=c++11
我正在使用gem install nmatrix
nmatrix
在Mac OS X(10.11.3(15D21))上gem install 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
有什么建議么?
g ++是GCC的編譯器可執行文件
您應該添加標志來編譯設置:
-std=c++0x
要么
-std=c++11
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.