compile error for generating .xml file netanim, ns3

69 views
Skip to first unread message

Muntasir Ahmed

unread,
Jan 31, 2020, 11:16:20 PM1/31/20
to ns-3-users

Screenshot from 2020-01-31 07-28-27.png

riaz@riaz-as:~/workspace/ns-allinone-3.30/ns-3.30$ ./waf --run scratch/first
Waf: Entering directory `/home/riaz/workspace/ns-allinone-3.30/ns-3.30/build'
[2299/2363] Linking build/examples/tutorial/ns3.30-first-debug
[2322/2363] Compiling scratch/first.cc
/usr/bin/ld: examples/tutorial/first.cc.2.o: in function `main':
/home/riaz/workspace/ns-allinone-3.30/ns-3.30/build/../examples/tutorial/first.cc:71: undefined reference to `ns3::AnimationInterface::AnimationInterface(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)'
/usr/bin/ld: /home/riaz/workspace/ns-allinone-3.30/ns-3.30/build/../examples/tutorial/first.cc:72: undefined reference to `ns3::AnimationInterface::SetConstantPosition(ns3::Ptr<ns3::Node>, double, double, double)'
/usr/bin/ld: /home/riaz/workspace/ns-allinone-3.30/ns-3.30/build/../examples/tutorial/first.cc:73: undefined reference to `ns3::AnimationInterface::SetConstantPosition(ns3::Ptr<ns3::Node>, double, double, double)'
/usr/bin/ld: /home/riaz/workspace/ns-allinone-3.30/ns-3.30/build/../examples/tutorial/first.cc:71: undefined reference to `ns3::AnimationInterface::~AnimationInterface()'
/usr/bin/ld: /home/riaz/workspace/ns-allinone-3.30/ns-3.30/build/../examples/tutorial/first.cc:71: undefined reference to `ns3::AnimationInterface::~AnimationInterface()'
collect2: error: ld returned 1 exit status

Waf: Leaving directory `/home/riaz/workspace/ns-allinone-3.30/ns-3.30/build'

Build failed
 -> task in 'first' failed with exit status 1 (run with -v to display more information)

Adi Saravanan

unread,
Feb 15, 2020, 1:15:42 AM2/15/20
to ns-3-users

Have you included the netanim header file?
Reply all
Reply to author
Forward
0 new messages