Hi, I get the same warnings while compiling ns-2. However the simulator works perfectly, so I didn't pay attention to them. I believe they aren't important, I'm not a C++ expert, but a "string" variable is pretty much the same as a "char * ". The compiler is warning you that the conversion is somehow dangerous.
Maybe this link could help you: http://babbage.cs.qc.edu/courses/cs701/Writeable_Strings.html See ya, Ezequiel. --- El mar 28-abr-09, Bringo Shawn <[email protected]> escribió: De: Bringo Shawn <[email protected]> Asunto: [ns] warning in implementing 'protoname' Para: "isi" <[email protected]> Fecha: martes, 28 de abril de 2009, 4:37 am Hi there, have nice days ! I am implementing 'protoname' from Mr Francisco's manual [masimum.inf.um.es/nsrt-howto/pdf/nsrt-howto.pdf] I have made all the changes as directed, and get the following result in response to 'make' command: ../common/packet.h:279: warning: deprecated conversion from string constant to ‘char*’ g++ -c -Wall -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR -DNDEBUG -DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_13 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCL_H -DHAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=std -DUSE_SINGLE_ADDRESS_SPACE - .... common/packet.h:279: warning: deprecated conversion from string constant to ‘char*’ common/ptypes2tcl.cc: In function ‘int main()’: common/ptypes2tcl.cc:45: warning: deprecated conversion from string constant to ‘char*’ common/ptypes2tcl.cc:47: warning: deprecated conversion from string constant to ‘char*’ .... make[1]: Entering directory `/root/ns-allinone-2.32/ns-2.32/indep-utils/webtrace-conv/epa' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/root/ns-allinone-2.32/ns-2.32/indep-utils/webtrace-conv/epa' make[1]: Entering directory `/root/ns-allinone-2.32/ns-2.32/indep-utils/webtrace-conv/nlanr' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/root/ns-allinone-2.32/ns-2.32/indep-utils/webtrace-conv/nlanr' make[1]: Entering directory `/root/ns-allinone-2.32/ns-2.32/indep-utils/webtrace-conv/ucb' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/root/ns-allinone-2.32/ns-2.32/indep-utils/webtrace-conv/ucb' [r...@localhost ns-2.32]# please help, specially this warning: warning: deprecated conversion from string constant to ‘char*’ Regards Yahoo! Cocina Recetas prácticas y comida saludable http://ar.mujer.yahoo.com/cocina/
