<div dir="ltr"><div>Hello everyone,<br></div><div><br></div><div>I have been getting the following error<br></div><div><br></div><div>error: assert
 failed. cond="uid != 0", msg="Assert in TypeId::LookupByName: 
ns3::ndn::Attacker not found", file=../src/core/model/type-id.cc, 
line=828<br>terminate called without an active exception.</div><div><br></div><div>Scenario: I have Attacker.cpp and Attacker.hpp files and I have placed them into the newly created folder "ndn-attack" inside the "examples" folder of ndnSIM.I have my-scenario.cpp outside in the examples folder. When I run my scenario it gives me the above error. <br></div><div><br></div><div>FYI, I have also added the line: NS_OBJECT_ENSURE_REGISTERED(Attacker); in my Attacker.cpp but I'm still getting the error. <br></div><div><br></div><div>Please help me resolve this error.  </div><div> <br></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Sai Gautam<br></div></div></div>