<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Hammad,<div class=""><br class=""></div><div class="">please take a look at this thread, the solution is described there:</div><div class=""><br class=""></div><div class=""><a href="http://www.lists.cs.ucla.edu/pipermail/ndnsim/2018-January/004401.html" class="">http://www.lists.cs.ucla.edu/pipermail/ndnsim/2018-January/004401.html</a></div><div class=""><br class=""></div><div class="">Thanks,</div><div class=""><br class=""><div class="">
<div class=""><div class=""><div class=""><span class="" style="float: none; display: inline !important;">Spyridon (Spyros) Mastorakis</span><br class=""><span class="" style="float: none; display: inline !important;">Personal Website: </span><a href="http://cs.ucla.edu/~mastorakis/" class="">http://cs.ucla.edu/~mastorakis/</a><br class=""><span class="" style="float: none; display: inline !important;">Internet Research Laboratory</span><br class=""><span class="" style="float: none; display: inline !important;">Computer Science Department</span><br class=""><span class="" style="float: none; display: inline !important;">UCLA</span></div></div></div>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Feb 27, 2018, at 2:08 AM, Hammad Zafar <<a href="mailto:hammad.zafar@y7mail.com" class="">hammad.zafar@y7mail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;" class=""><div style="font-family: Helvetica, Arial, sans-serif; font-size: 13px;" class=""><div id="ydp4722a424yiv5878716566" class=""><div class=""><div style="font-family: Helvetica, Arial, sans-serif; font-size: 13px;" class=""><div class="">Hi community,</div><div class=""><br class=""></div><div class="">I've been facing this issue that whenever I try to use custom applications; whether it's a forwarding strategy, a customer application or any other custom application (that are given as examples in ndnSIM); outside their example file, it doesn't work. Always a compiling or linking issue. </div><div class=""><br class=""></div><div class="">For example, I wanted to have custom application 'Hijacker' in my scenario's code file (.cpp), did it using AppHelper. The code file compiles fine and build is finished successfully but my scenario doesn't run and it shows an error:</div><div class=""><br class=""></div><div class=""><b class="">assert failed. cond="uid != 0", msg="Assert in TypeId::LookupByName: Hijacker not found", file=../src/core/model/<a href="http://type-id.cc" class="">type-id.cc</a>, line=755<br class="">terminate called without an active exception<br class=""></b><br class=""><div class="">Note that the scenario in ndn-custom-apps.cpp runs fine and doesn't give any error but when I use custom apps in another file, there's that issue again. Same thing happens when I use 'RandomLoadBalancer' strategy outside ndn-load-balancer.cpp file (different error though).<br class=""></div><div class=""><br class=""></div><div class="">What am I doing wrong? Help would be much appreciated.</div><div class=""><br class=""></div><div class="">Regards,</div><div class="">Hammad<br class=""></div><div class=""><br class=""></div></div></div></div></div></div></div></div></div></blockquote></div><br class=""></div></body></html>