Ubuntu上でプログラムがうまく動きません。
乱数生成のプログラムを作成しているのですが、
”In file included from /usr/include/c++/5/random:35:0,
from ../scratch/ns3-hello-world.cc:13:
/usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support
”
と出力され、動きません。
C+11を有効にする方法を模索しましたが、うまくいきません。
ヴァージョンは最新です。
"./waf --run "ns3-hello-world" -std=c++11"
で実行すると、コマンドの種類が紹介され、
"waf: error: no such option: -s"
と出力されます。
どうかよろしくお願いいたします。
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/08/18 11:09
2017/08/18 13:09