LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-22-2016, 12:33 PM   #1
vivekanandagn
LQ Newbie
 
Registered: Sep 2016
Posts: 4

Rep: Reputation: Disabled
Post 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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error in mannasim simulation in ns2.35 kien2106 Linux - Software 6 05-08-2014 08:22 PM
i have done a simulation in ns2 where i got these error ranjani Linux - Wireless Networking 3 02-03-2014 12:51 PM
NS2 WirelessMeshNetwork Simulation Error in add_interface uj100 Linux - Newbie 1 11-07-2012 01:29 PM
Error on example simulation on ns2 using add-on for directional antenna Vixxx Linux - Software 5 02-03-2012 10:37 AM
NS2 network simulation problem:Change queue parameters dynamically during simulation raeisy Linux - Networking 1 11-21-2010 11:30 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration