<div dir="ltr"><div><div><div><div><div>Hi Alex,<br><br></div>I forward declared it by "namespace cs {class Entry}".<br></div>I'll try your suggestion by "#include <ns3/ndn-content-store.h>".<br>
</div>Thanks very much.<br><br></div>Best regards,<br></div>Xiaoyan<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Apr 11, 2013 at 7:06 AM, Alex Afanasyev <span dir="ltr"><<a href="mailto:alexander.afanasyev@ucla.edu" target="_blank">alexander.afanasyev@ucla.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Xiaoyan,<br>
<br>
I can tell more, if you can give more context about where the error originated.<br>
<br>
What it could be is that you provided forward declaration of Entry as "struct Entry;", while cs::Entry is actually a class and should be forward-declared as "class Entry;"<br>
<br>
If you never explicitly declared Entry and the error related to the compiler's implicit attempt to figure out what cs::Entry is, then just include header file in your forwarding strategy header file:<br>
<br>
#include <ns3/ndn-content-store.h><br>
<br>
Note, you should include file before start of any namespace, otherwise you'll get another set of strange errors.<br>
<br>
---<br>
Alex<br>
<div><div class="h5"><br>
On Apr 10, 2013, at 7:59 AM, Xiao yan Hu <<a href="mailto:xhbreezehu@gmail.com">xhbreezehu@gmail.com</a>> wrote:<br>
<br>
> Hi,<br>
><br>
> I kept getting errors " error: forward declaration of 'const struct ns3::ndn::cs::Entry'"?<br>
> would you guys please tell me what does this mean?<br>
> Actually I want to write my own custom forwarding strategy which is extended from best route and in which "Ptr<const cs::Entry> entry" is the argument of one function.<br>
> If I want to use Ptr<const cs::Entry>, how should I declare it?<br>
> Thanks very much!<br>
><br>
> Sincerely,<br>
> Xiaoyan<br>
</div></div>> _______________________________________________<br>
> ndnSIM mailing list<br>
> <a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br>
> <a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>
<br>
</blockquote></div><br></div>