[ndnSIM] Compilation failure because of undefined reference
Alex Afanasyev
alexander.afanasyev at ucla.edu
Mon Dec 17 09:47:29 PST 2012
Begin forwarded message:
> From: "T.Ogawara" <notifications at github.com>
>
> Hi,
> I'm trying to create custom apps on ndnSIM in /src/ndnSIM/apps.
> But an error occured on compilation.
>
> Here is the part of code.
>
> #include "ns3/ndn-content-store.h"
>
> void Chronos::SendMsg(){
> ContentObjectTail tail;
> Ptr<ContentObjectHeader> header = Create<ContentObjectHeader> ();
>
> header->SetName (Create<NameComponents> ("/prefix"));
>
>
> Ptr<Packet> packet = Create<Packet> (1024);
> packet->AddHeader (*header);
> packet->AddTrailer (tail);
>
> ContentStore::GetContentStore(GetNode())->ContentStore::Add(header,packet);
> */
> }
>
> I hoe this works, but this error occuered.
>
> ./libns3-dev-ndnSIM-debug.so: undefined reference to `ns3::ndn::ContentStore::Add(ns3::Ptr, ns3::Ptr)'
> collect2: ld returned 1 exit status
>
> I tried but could not fix this.
> Could you give me some hints to solve this?
> Thank you.
More information about the ndnSIM
mailing list