簡體   English   中英

gem install nmatrix-您需要支持-std = c ++ 0x或-std = c ++ 11的g ++版本

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM