remon@ubuntu:~/ns-allinone-3.19/ns-3.19$ ./waf --run myaodv
Waf: Entering directory `/home/remon/ns-allinone-3.19/ns-3.19/build'
[ 800/1694] cxx: scratch/myaodv.cc -> build/scratch/myaodv.cc.1.o
../scratch/myaodv.cc: In member function ‘void AodvExample::Run()’:
../scratch/myaodv.cc:137:1: error: expected primary-expression before ‘/’ token
/Simulator::Stop (Seconds (totalTime));
^
../scratch/myaodv.cc:138:22: error: no matching function for call to ‘ns3::AnimationInterface::AnimationInterface()’
AnimationInterface anim;
^
../scratch/myaodv.cc:138:22: note: candidates are:
In file included from ./ns3/netanim-module.h:11:0,
from ../scratch/myaodv.cc:22:
./ns3/animation-interface.h:120:3: note: ns3::AnimationInterface::AnimationInterface(std::string, uint64_t, bool)
AnimationInterface (const std::string filename,
^
./ns3/animation-interface.h:120:3: note: candidate expects 3 arguments, 0 provided
./ns3/animation-interface.h:106:7: note: ns3::AnimationInterface::AnimationInterface(const ns3::AnimationInterface&)
class AnimationInterface
^
./ns3/animation-interface.h:106:7: note: candidate expects 1 argument, 0 provided
./ns3/animation-interface.h:471:8: error: ‘bool ns3::AnimationInterface::SetOutputFile(const string&)’ is private
bool SetOutputFile (const std::string& fn);
^
../scratch/myaodv.cc:139:33: error: within this context
anim.SetOutputFile ("aodv.xml");
^
In file included from ./ns3/netanim-module.h:11:0,
from ../scratch/myaodv.cc:22:
./ns3/animation-interface.h:481:8: error: ‘void ns3::AnimationInterface::SetXMLOutput()’ is private
void SetXMLOutput ();
^
../scratch/myaodv.cc:140:22: error: within this context
anim.SetXMLOutput ();
^
In file included from ./ns3/netanim-module.h:11:0,
from ../scratch/myaodv.cc:22:
./ns3/animation-interface.h:494:8: error: ‘void ns3::AnimationInterface::StartAnimation(bool)’ is private
void StartAnimation (bool restart = false);
^
../scratch/myaodv.cc:141:24: error: within this context
anim.StartAnimation ();
^
Waf: Leaving directory `/home/remon/ns-allinone-3.19/ns-3.19/build'
Build failed
-> task in 'myaodv' failed (exit status 1):
{task 150997132: cxx myaodv.cc -> myaodv.cc.1.o}
['/usr/bin/g++', '-O0', '-ggdb', '-g3', '-Wall', '-Werror', '-Wno-error=deprecated-declarations', '-fstrict-aliasing', '-Wstrict-aliasing', '-pthread', '-pthread', '-fno-strict-aliasing', '-fwrapv', '-fstack-protector', '-fno-strict-aliasing', '-I.', '-I..', '-I/usr/include/gtk-2.0', '-I/usr/lib/i386-linux-gnu/gtk-2.0/include', '-I/usr/include/atk-1.0', '-I/usr/include/cairo', '-I/usr/include/gdk-pixbuf-2.0', '-I/usr/include/pango-1.0', '-I/usr/include/gio-unix-2.0', '-I/usr/include/glib-2.0', '-I/usr/lib/i386-linux-gnu/glib-2.0/include', '-I/usr/include/pixman-1', '-I/usr/include/freetype2', '-I/usr/include/libpng12', '-I/usr/include/harfbuzz', '-I/usr/include/libxml2', '-I/usr/include/python2.7', '-I/usr/include/i386-linux-gnu/python2.7', '-DNS3_ASSERT_ENABLE', '-DNS3_LOG_ENABLE', '-DHAVE_SYS_IOCTL_H=1', '-DHAVE_IF_NETS_H=1', '-DHAVE_NET_ETHERNET_H=1', '-DHAVE_PACKET_H=1', '-DHAVE_SQLITE3=1', '-DHAVE_IF_TUN_H=1', '-DHAVE_GSL=1', '-DNDEBUG', '-D_FORTIFY_SOURCE=2', '../scratch/myaodv.cc', '-c', '-o', 'scratch/myaodv.cc.1.o']