LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   NS2 simulation error (https://www.linuxquestions.org/questions/programming-9/ns2-simulation-error-4175589960/)

vivekanandagn 09-22-2016 12:33 PM

NS2 simulation error
 
Sir, when i try to simulate ns2, i am facing following error. Ns2 version i am using is Ns2.34 in Ubuntu 12.04 , 32 bit machine. Please anybody solve this issue.

g++ -c -Wall -Wno-write-strings -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_TCLINT_H -DHAVE_TCL_H -DHAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=std -DUSE_SINGLE_ADDRESS_SPACE -Drng_test -I. -I. -I/home/osboxes/ns-allinone-2.34/tclcl-1.19 -I/home/osboxes/ns-allinone-2.34/otcl-1.13 -I/home/osboxes/ns-allinone-2.34/include -I/home/osboxes/ns-allinone-2.34/include -I/home/osboxes/ns-allinone-2.34/include -I/usr/include/pcap -I./tcp -I./sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile -I./trace -I./routing -I./tools -I./classifier -I./mcast -I./diffusion3/lib/main -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns -I./diffusion3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./wpan -o mympeg/myudp.o mympeg/myudp.cc
mympeg/myudp.cc: In constructor ‘myUdpAgent::myUdpAgent()’:
mympeg/myudp.cc:19:21: error: cannot call constructor ‘myUdpAgent::UdpAgent’ directly [-fpermissive]
mympeg/myudp.cc:19:21: error: for a function-style cast, remove the redundant ‘::UdpAgent’ [-fpermissive]
make: *** [mympeg/myudp.o] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
osboxes@osboxes:~/ns-allinone-2.34$


Thank you.


All times are GMT -5. The time now is 10:07 AM.