[ndnSIM] Linking failure during compilng an example under ndnSIM2.1

Shuai Gao gaoxlh at gmail.com
Fri Nov 6 22:55:36 PST 2015


Hi all,
I  have installed the ndnSIM 2.1  according to the guide during the
"Getting Started".  I can run the examples sucecssfully.

Then I copy the example "ndn-simple.cpp" into
"/ndnSIM2.1/scenario/scenarios" and rename it as "my-simple.cpp". After I
run "./waf --run=my-simple", I get the following error:

Waf: Entering directory `/home/gsxlh/ndnSIM2.1/scenario/build'
[2/2] Linking build/my-simple
/usr/bin/ld: warning: libboost_thread.so.1.54.0, needed by
/usr/local/lib/libns3-dev-ndnSIM-optimized.so, may conflict with
libboost_thread.so.1.57.0
/usr/bin/ld: warning: libboost_system.so.1.54.0, needed by
/usr/local/lib/libns3-dev-ndnSIM-optimized.so, may conflict with
libboost_system.so.1.57.0
/usr/bin/ld: warning: libboost_random.so.1.54.0, needed by
/usr/local/lib/libns3-dev-ndnSIM-optimized.so, may conflict with
libboost_random.so.1.57.0
/usr/bin/ld: warning: libboost_regex.so.1.54.0, needed by
/usr/local/lib/libns3-dev-ndnSIM-optimized.so, may conflict with
libboost_regex.so.1.57.0
/usr/bin/ld: warning: libboost_chrono.so.1.54.0, needed by
/usr/local/lib/libns3-dev-ndnSIM-optimized.so, may conflict with
libboost_chrono.so.1.57.0
/usr/bin/ld: warning: libboost_filesystem.so.1.54.0, needed by
/usr/local/lib/libns3-dev-ndnSIM-optimized.so, may conflict with
libboost_filesystem.so.1.57.0
/usr/local/lib/libns3-dev-emu-optimized.so: undefined reference to
`ns3::LogComponent::LogComponent(std::string const&, ns3::LogLevel)'
collect2: error: ld returned 1 exit status

Waf: Leaving directory `/home/gsxlh/ndnSIM2.1/scenario/build'
Build failed
 -> task in 'my-simple' failed (exit status 1):
    {task 3067429772L: cxxprogram my-simple.cpp.2.o -> my-simple}
['/usr/bin/g++', '-pthread', '-Wl,-Bdynamic', '-pthread', '-Wl,-Bdynamic',
'-pthread', '-Wl,-Bdynamic', '-pthread', '-Wl,-Bdynamic', '-pthread',
'-Wl,-Bdynamic' ......


Can you help me fix this error?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20151106/e40c6798/attachment.html>


More information about the ndnSIM mailing list