[ndnSIM] Tracer compilation errors

Sai Gautam Mandapati saigautam96 at gmail.com
Wed Feb 22 17:09:34 PST 2023


Can anyone please respond to this email?



Thanks

On Tue, Feb 21, 2023 at 4:54 PM Sai Gautam Mandapati <saigautam96 at gmail.com>
wrote:

> Hi everyone and Junxiao,
>
> I have been getting the following errors when I'm trying to compile my
> tracer. Can anyone please help me out in resolving these errors? I'm happy
> to share my code personally if you want to have a look at it.
>
> *Error 1:*
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *In file included from ./ns3/object-base.h:23,                 from
> ./ns3/object.h:29,                 from ./ns3/object-factory.h:24,
>        from ./ns3/simulator.h:29,                 from
> ./ns3/ndnSIM/model/ndn-common.hpp:24,                 from
> ../src/ndnSIM/utils/tracers/pit-tracer.hpp:8,                 from
> ../src/ndnSIM/utils/tracers/pit-tracer.cpp:1:./ns3/type-id.h: In
> instantiation of ‘static ns3::ObjectBase*
> ns3::TypeId::AddConstructor()::Maker::Create() [with T =
> ns3::ndn::PitTracer]’:./ns3/type-id.h:659:3:   required from ‘ns3::TypeId
> ns3::TypeId::AddConstructor() [with T =
> ns3::ndn::PitTracer]’../src/ndnSIM/utils/tracers/pit-tracer.cpp:39:32:
> required from here./ns3/type-id.h:656:20: error: cannot convert
> ‘ns3::ndn::PitTracer*’ to ‘ns3::ObjectBase*’ in initialization  656 |
> ObjectBase * base = new T ();      |                    ^~~~*
>
>
> *Error 2: *
>
>
>
>
>
>
> *./ns3/timer.h:319:26:   required from ‘void
> ns3::Timer::SetFunction(MEM_PTR, OBJ_PTR) [with MEM_PTR = void
> (ns3::ndn::PitTracer::*)(std::basic_ostream<char>&); OBJ_PTR =
> ns3::ndn::PitTracer*]’../src/ndnSIM/utils/tracers/pit-tracer.cpp:142:58:
> required from here./ns3/timer-impl.h:678:25: error:
> ‘std::basic_ostream<_CharT, _Traits>::basic_ostream() [with _CharT = char;
> _Traits = std::char_traits<char>]’ is protected within this context  678 |
>         m_objPtr (objPtr)      |                         ^*
>
> *Error 3:*
>
>
>
>
> *./ns3/timer-impl.h:687:34: error: use of deleted function
> ‘std::basic_ostream<_CharT, _Traits>::basic_ostream(const
> std::basic_ostream<_CharT, _Traits>&) [with _CharT = char; _Traits =
> std::char_traits<char>]’  687 |       return Simulator::Schedule (delay,
> m_memPtr, m_objPtr, m_a1);      |
>  ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*
>
> *Error 4:*
>
>
>
>
> *./ns3/timer-impl.h:683:12: error: use of deleted function
> ‘std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT,
> _Traits>::operator=(const std::basic_ostream<_CharT, _Traits>&) [with
> _CharT = char; _Traits = std::char_traits<char>]’  683 |       m_a1 = a1;
>     |       ~~~~~^~~~*
>
> --
> Sai Gautam
>


-- 
Sai Gautam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20230222/dd99db15/attachment.html>


More information about the ndnSIM mailing list