[ndnSIM] Adding Trace Source to App

RABARI JEET.HASMUKHBHAI rabari_m190217cs at nitc.ac.in
Wed Jan 27 07:18:01 PST 2021

Hello, I am trying to add a trace source to App using the following line.

MakeCallback (&Experiment::InterestTraceCallback, this));

But I am getting compilation error.

/usr/local/include/ns3-dev/ns3/callback.h:628:5:   required from here
/usr/local/include/ns3-dev/ns3/ptr.h:712:14: error: invalid use of
incomplete type ‘class ns3::ndn::App’
  712 |       m_ptr->Ref ();

How to add custom trace source to App?

Any simple example code would be helpful.

Thanks and Regards,
Jeet Rabari
National Institute of Technology, Calicut
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20210127/4e885886/attachment.html>

More information about the ndnSIM mailing list