[ndnSIM] error when running a simulation scenario

Samar Alduayji samarduayji at gmail.com
Sat Feb 16 06:31:49 PST 2019


Sorry for sending again

I read that this might be a result of having two boost versions
so I run the following command

*locate libboost_system*

/usr/lib/i386-linux-gnu/libboost_system.a
/usr/lib/i386-linux-gnu/libboost_system.so
/usr/lib/i386-linux-gnu/libboost_system.so.1.58.0
/usr/local/lib/libboost_system.a
/usr/local/lib/libboost_system.so
/usr/local/lib/libboost_system.so.1.62.0

B.S. when I  run the ./waf command, I run it as following
*./waf configure --boost-includes=/usr/local/include
--boost-libs=/usr/local/lib --enable-examples -d optimized*

I really appreciate your help and reply

Regards,
Samar

On Sat, Feb 16, 2019 at 11:56 AM Samar Alduayji <samarduayji at gmail.com>
wrote:

> Dear Developers,
>
>
> I was following the example in this tutorial
> https://named-data.net/wp-content/uploads/2016/10/6-ndnSIM.pdf
> to write a simulation scenario using a separate directory ( scenarios)
>
> when I run the command ./waf --run mycode.cpp
> I got the following error
> *[2/2] Linking build/mycode*
> */usr/local/lib/libns3-dev-emu-optimized.so: undefined reference to
> `ns3::Queue::Dequeue()'*
> */usr/local/lib/libns3-dev-emu-optimized.so: undefined reference to
> `ns3::CallbackBase::Demangle(std::__cxx11::basic_string<char,
> std::char_traits<char>, std::allocator<char> > const&)'*
> */usr/local/lib/libns3-dev-emu-optimized.so: undefined reference to
> `ns3::Queue::GetTypeId()'*
> */usr/local/lib/libns3-dev-emu-optimized.so: undefined reference to
> `ns3::LogComponent::LogComponent(std::__cxx11::basic_string<char,
> std::char_traits<char>, std::allocator<char> > const&, ns3::LogLevel)'*
> */usr/local/lib/libns3-dev-emu-optimized.so: undefined reference to
> `ns3::Queue::Enqueue(ns3::Ptr<ns3::Packet>)'*
> */usr/local/lib/libns3-dev-emu-optimized.so: undefined reference to
> `ns3::TypeId::AddAttribute(std::__cxx11::basic_string<char,
> std::char_traits<char>, std::allocator<char> >,
> std::__cxx11::basic_string<char, std::char_traits<char>,
> std::allocator<char> >, ns3::AttributeValue const&,
> ns3::Ptr<ns3::AttributeAccessor const>, ns3::Ptr<ns3::AttributeChecker
> const>)'*
> */usr/local/lib/libns3-dev-emu-optimized.so: undefined reference to
> `ns3::PcapHelper::CreateFile(std::__cxx11::basic_string<char,
> std::char_traits<char>, std::allocator<char> >, std::_Ios_Openmode,
> unsigned int, unsigned int, int)'*
> */usr/local/lib/libns3-dev-emu-optimized.so: undefined reference to
> `typeinfo for ns3::Queue'*
> *collect2: error: ld returned 1 exit statu*s
>
> I run the configuration as in the last section of the Getting started
> page. Can you please help me correcting the error.
> Thanks in advance.
>
> Kind Regards,
> Samar
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20190216/f9e534ff/attachment.html>


More information about the ndnSIM mailing list