Skip navigation.

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

GDB tipsProgramming Pearls

Comments

Anonymous 18. February 2008, 03:57

Anonymous writes:

Hi, am doin a project on "intersignaling vulnerabilities at the interface of SS7 over IP".Is NS2 sufficient to handle with my work?kindly suggest me some appropriate simulation tools.

Anonymous 15. May 2009, 05:34

Anonymous writes:

Hi. Have you ever install MNS for NS2. I have this error

mns_v2.0/ldp.cc:823: warning: deprecated conversion from string constant to ‘char*’
make: *** [mns_v2.0/ldp.o] Error 1
Ns make failed!

Thanks.

How to use Quote function:

  1. Select some text
  2. Click on the Quote link

Write a comment

Comment
(BBcode and HTML is turned off for anonymous user comments.)

If you can't read the words, press the small reload icon.


Smilies