<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Why did you manually added (1) or (2) ?  You should just have pulled the update from github...</div><div>If you don't like git, you could have just applied a patch.</div><div><br></div><div>In any case, you're just missing a method declaration in ndn-fib-impl.h (<a href="https://github.com/NDN-Routing/ndnSIM/commit/e5a8b5a276cfbda168cd07f87807a75e9acb65c5#L3R91">https://github.com/NDN-Routing/ndnSIM/commit/e5a8b5a276cfbda168cd07f87807a75e9acb65c5#L3R91</a>)</div><div><br></div><div>---</div><div>Alex</div><br><div><div>On Mar 20, 2013, at 3:43 AM, yao hu <<a href="mailto:huyao0107@gmail.com">huyao0107@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">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>
_______________________________________________<br>ndnSIM mailing list<br><a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br>http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim<br></blockquote></div><br></body></html>