Skip navigation.

Posts tagged with "ns3"

ns-3 is on the way!

,

I have been using ns-2 network simulator for several years. I am very excited that a new version: ns-3 is on the way. I will start experimenting with ns-3 dev code and hopefully share some of my experiences in my blog along the way.

When using the waf to compile the source code, I encounted the following problem:
 [128/316] * cpp : src/core/command-line.cc -> build/debug/src/core/command-line.o
cc1plus: warnings being treated as errors
../src/core/command-line.cc: In member function ‘virtual bool ns3::CommandLineTest::RunTests()’:
../src/core/command-line.cc:191: warning: deprecated conversion from string constant to ‘char*’
../src/core/command-line.cc:191: warning: deprecated conversion from string constant to ‘char*’
../src/core/command-line.cc:191: warning: deprecated conversion from string constant to ‘char*’
../src/core/command-line.cc:202: warning: deprecated conversion from string constant to ‘char*’
../src/core/command-line.cc:202: warning: deprecated conversion from string constant to ‘char*’
../src/core/command-line.cc:213: warning: deprecated conversion from string constant to ‘char*’
../src/core/command-line.cc:213: warning: deprecated conversion from string constant to ‘char*’
../src/core/command-line.cc:213: warning: deprecated conversion from string constant to ‘char*’
../src/core/command-line.cc:224: warning: deprecated conversion from string constant to ‘char*’
../src/core/command-line.cc:224: warning: deprecated conversion from string constant to ‘char*’
Compilation failed 

To solve this problem, I used
CXXFLAGS="" ./waf configure
./waf