Disable warning messages in debug mod on ns2
filed in network simulator 2 (ns2) on Feb.24, 2010
If you are writing simulations on ns2 you probably wants to run it in debug mod under eclipse or similar development enviorements. To do so we must configure the makefile by calling
./configure --enable-debug
under ns2.xx folder. After this we can run make to build an debug-able version of ns2. But the make procedure stops in each warning message so i have to correct each warning in ns2. (a very boring job ). So i ask my friends how to build a warning free debug edition of makefile. Thanks to Ali Boyacı he figure out the necessarry change in makefie I have to made.
After calling
./configure --enable-debug
open your makefile and locate between lines 50-60
there will be a line as
CCOPT = -g -Wall -Wno-write-strings -Wno-parentheses -Werror
Remove
-Werror
at the end of this line and save your makefile and call make command.
That is all. But in each “./configure –enable-debug” call you have to redo this tip.