[ndnSIM] Error compiling ndnSIM with gcc-10.3.0

Elídio Tomás da Silva elidio.silva at unilurio.ac.mz
Wed Sep 22 11:37:54 PDT 2021


Dear Srs,

I would appreciate any help fixing the following error, when compiling with
gcc 10.3.0

---- begin -----
../src/ndnSIM/ndn-cxx/ndn-cxx/util/scheduler.cpp:100:27: error: call to
'make_shared' is ambiguous
 auto i = m_queue.insert(make_shared<EventInfo>(after,std::move(callback),
ns3::Simulator::GetContext()));
                         ^~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/include/g++-v10/bits/shared_ptr.h:872:5:
note: candidate function [with _Tp = ndn::scheduler::EventInfo, _Args =
<boost::chrono::duration<long, boost::ratio<1, 1000000000>> &,
std::function<void ()>, unsigned int>]
   make_shared(_Args&&... __args)
   ^
/usr/include/boost/smart_ptr/make_shared_object.hpp:248:87: note: candidate
function [with T = ndn::scheduler::EventInfo, Args =
<boost::chrono::duration<long, boost::ratio<1, 1000000000>> &,
std::function<void ()>, unsigned int>] template< class T, class... Args >
typename boost::detail::sp_if_not_array< T >::type make_shared( Args && ...
args )

---- end -----

Thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20210922/2952555c/attachment.html>


More information about the ndnSIM mailing list