[ndnSIM] error when running a simulation scenario

Spyridon (Spyros) Mastorakis mastorakis at cs.ucla.edu
Fri Mar 1 16:00:32 PST 2019


The locate command tells you you have 2 different versions of boost installed.

Use the --boost-includes and --boost-libs flags to select the version that you want.

Thanks,

Spyridon (Spyros) Mastorakis
Personal Website: http://cs.ucla.edu/~mastorakis/
Internet Research Laboratory
Computer Science Department
UCLA

> On Feb 16, 2019, at 6:31 AM, Samar Alduayji via ndnSIM <ndnsim at lists.cs.ucla.edu> wrote:
> 
> 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 status
> 
> 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  
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim



More information about the ndnSIM mailing list