[ndnSIM] Assert in TypeId::LookupByName: error. Could not find the class
Alex Afanasyev
aa at CS.UCLA.EDU
Thu Aug 4 14:12:52 PDT 2016
Hi Fatemeh,
I suspect that you have defined PccApp in a separate .hpp/.cpp file. Don't forget to include .cpp file to be compiled together with your simulation scenario. If you're using scenario template, this should happen automatically though.
--
Alex
> On Jul 27, 2016, at 10:53 PM, Fatemeh Goudarzi <fatemeh.university at gmail.com> wrote:
>
> Hi,
> I am trying to add a new type of application by defining its own class. I think I have coded it right (e.g. TypeId method, and calling NS_LOG_COMPONENT_DEFINE ("PccApp"),
> NS_OBJECT_ENSURE_REGISTERED (PccApp);
>
> TypeId
> PccApp::GetTypeId ()
> {
> static TypeId tid = TypeId ("PccApp")
> .SetParent<ndn::App> ()
> .AddConstructor<PccApp> ()
> ;
> return tid;
> }
>
>
> But I get the below error.
>
> assert failed. cond="uid != 0", msg="Assert in TypeId::LookupByName:
> PccApp not found", file=../src/core/model/type-id.cc, line=755
> terminate called without an active exception
>
> Could anyone please let me know what might be the issue?
>
> Best Regards,
> Fatemeh Goudarzi
>
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20160804/0106fcd8/attachment.bin>
More information about the ndnSIM
mailing list