[ndnSIM] Linking error.

Anil Jangam anilj.mailing at gmail.com
Wed Aug 27 00:41:37 PDT 2014


I compiled and installed the ndnSIM as given in the link
http://ndnsim.net/getting-started.html
(finally installed the simulator libraries using 'sudo ./waf install')

After this, I got the template for the simulation and copied an example
program (ndn-simple.cc) in the 'scenarios'  folder.

The ./waf configure gave me three warnings.
Checking for ns3-brite                     : not found
Checking for ns3-click                     : not found
Checking for ns3-openflow                  : not found

When I runt he ./waf, it gave me the following linking errors.

anilj1 at insp5521:~/sandbox/ndnSIM/examples/sampleSims/ndnSimple$ ./waf
Waf: Entering directory
`/home/anilj1/sandbox/ndnSIM/examples/sampleSims/ndnSimple/build'
[1/2] cxx: scenarios/ndn-simple.cc -> build/scenarios/ndn-simple.cc.2.o
[2/2] cxxprogram: build/scenarios/ndn-simple.cc.2.o -> build/ndn-simple
/usr/local/lib/libns3-dev-visualizer-optimized.so: undefined reference to
`ns3::Time::SetDefaultNsResolution()'
/usr/local/lib/libns3-dev-visualizer-optimized.so: undefined reference to
`ns3::Time::StaticInit()'
/usr/local/lib/libns3-dev-visualizer-optimized.so: undefined reference to
`ns3::Time::Mark(ns3::Time*)'
/usr/local/lib/libns3-dev-visualizer-optimized.so: undefined reference to
`ns3::LogComponent::LogComponent(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)'
/usr/local/lib/libns3-dev-visualizer-optimized.so: undefined reference to
`ns3::Time::Clear(ns3::Time*)'
/usr/local/lib/libns3-dev-visualizer-optimized.so: undefined reference to
`ns3::Time::g_markingTimes'
collect2: ld returned 1 exit status
Waf: Leaving directory
`/home/anilj1/sandbox/ndnSIM/examples/sampleSims/ndnSimple/build'
Build failed
 -> task in 'ndn-simple' failed (exit status 1):
{task 140425419432464: cxxprogram ndn-simple.cc.2.o -> ndn-simple}
['/usr/bin/g++', '-pthread', '-Wl,-Bdynamic', '-pthread', '-Wl,-Bdynamic',
'-pthread', '-Wl,-Bdynamic', '-pthread', '-Wl,-Bdynamic', '-pthread',
'-Wl,-Bdynamic', '-pthread', '-Wl,-Bdynamic', '-pthread', '-Wl,-Bdynamic',
'-pthread', '-Wl,-Bdynamic', '-pthread', '-Wl,-Bdynamic', '-pthread',
'-Wl,-Bdynamic', '-pthread', '-Wl,-Bdynamic', '-pthread', '-Wl,-Bdynamic',
'-pthread', '-Wl,-Bdynamic', '-pthread', '-Wl,-Bdynamic', '-pthread',
'-Wl,-Bdynamic', '-pthread', '-Wl,-Bdynamic', '-pthread', '-Wl,-Bdynamic',

Can someone pls help me understand what is missing here?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20140827/f7fcf0b5/attachment.html>


More information about the ndnSIM mailing list