[ndnSIM] error when running a simulation scenario
Samar Alduayji
samarduayji at gmail.com
Sat Feb 16 00:56:17 PST 2019
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/b5fa86a4/attachment.html>
More information about the ndnSIM
mailing list