Hi Alex,<div><br></div><div>Thanks for reply to my previous question. Now I am continuing my work. </div><div><br></div><div>I want to look up FIB when Data packet comes (doing this in ForwardingStrategy::DidReceiveSolicitedData()), however I cannot find the call Find (const Name &prefix) in my local file model/fib/ndn-fib.h which is shown on the online API documentation. So I added (1) into ndn-fib.h and (2) into ndn-fib-impl.cc, but after compiling, it shows the error message (3). </div>
<div><br></div><div>What else should I do? Or is there any other ways to look up FIB (fib::Entry should be returned) in the call ForwardingStrategy::DidReceiveSolicitedData()?</div><div>Thanks very much!</div><div><br></div>
<div>---</div><div>(1)</div><div>virtual Ptr<fib::Entry></div><div>Find (const Name &prefix) = 0;</div><div><br></div><div>(2)</div><div>Ptr<fib::Entry></div><div>FibImpl::Find (const Name &prefix)</div>
<div>{</div><div>   super::iterator item = super::find_exact (prefix);</div><div><br></div><div>   if (item == super::end ())</div><div>   return 0;</div><div>   else</div><div>   return item->payload ();</div><div>}</div>
<div><br></div><div>(3)</div><div><div>../src/ndnSIM/model/fib/ndn-fib-impl.cc:88:34: error: no ‘ns3::Ptr<ns3::ndn::fib::Entry> ns3::ndn::fib::FibImpl::Find(const ns3::ndn::Name&)’ member function declared in class ‘ns3::ndn::fib::FibImpl’</div>
<div>In file included from ./ns3/object-base.h:23:0,</div><div>                 from ./ns3/object.h:29,</div><div>                 from ./ns3/node.h:26,</div><div>                 from ./ns3/ndn-fib.h:25,</div><div>                 from ../src/ndnSIM/model/fib/ndn-fib-impl.h:24,</div>
<div>                 from ../src/ndnSIM/model/fib/ndn-fib-impl.cc:21:</div><div>./ns3/type-id.h: In static member function ‘static ns3::ObjectBase* ns3::TypeId::AddConstructor()::Maker::Create() [with T = ns3::ndn::fib::FibImpl]’:</div>
<div>./ns3/type-id.h:396:59:   instantiated from ‘ns3::TypeId ns3::TypeId::AddConstructor() [with T = ns3::ndn::fib::FibImpl]’</div><div>../src/ndnSIM/model/fib/ndn-fib-impl.cc:51:31:   instantiated from here</div><div>./ns3/type-id.h:392:34: error: cannot allocate an object of abstract type ‘ns3::ndn::fib::FibImpl’</div>
<div>../src/ndnSIM/model/fib/ndn-fib-impl.h:66:7: note:   because the following virtual functions are pure within ‘ns3::ndn::fib::FibImpl’:</div><div>./ns3/ndn-fib.h:70:3: note: <span class="Apple-tab-span" style="white-space:pre">     </span>virtual ns3::Ptr<ns3::ndn::fib::Entry> ns3::ndn::Fib::Find(const ns3::ndn::Name&)</div>
<div>Waf: Leaving directory `/root/ndnSIM/ns-3/build'</div><div>Build failed</div><div> -> task in 'ns3-ndnSIM' failed (exit status 1): </div><div><span class="Apple-tab-span" style="white-space:pre">     </span>{task 167312460: cxx ndn-fib-impl.cc -> ndn-fib-impl.cc.1.o}</div>
</div><div><br></div>