[ndnSIM] Custom Strategy - undefined reference errors?

Alex Afanasyev aa at CS.UCLA.EDU
Sun Dec 18 13:51:44 PST 2016


> On Dec 17, 2016, at 11:00 PM, John Baugh <jpbaugh at umich.edu> wrote:
> 
> Alex,
> 
> Do you mean create a top level directory with the name of the scenario, and then use the directory structure of the template you provided and ndnSIM will do the rest?

If you use template, follow the description in the README.  This template should be placed anywhere outside NS-3/ndnSIM and will simply use the installed NS-3 to link to.

If you not using template, take a look for ndn-load-balancer, ndn-custom-apps, ndn-cxx-simple, ndn-simple-with-content-freshness, ndn-simple-for-nrt-helper examples organization (i.e., .cpp file with main function and directory with code that is linked to the scenario).

---
Alex

> 
> Next question would be:. Where do we put the top level of the templated directory structure you suggest?
> 
> Thanks
> 
> John
> 
> On Dec 18, 2016 1:55 AM, "Alex Afanasyev" <aa at cs.ucla.edu <mailto:aa at cs.ucla.edu>> wrote:
> Hi John,
> 
> From the error I see that you're writing your simulation scenario in the 'examples' folder of ndnSIM.  While you certainly can do that, I would highly recommend to use the skeleton (https://github.com/named-data-ndnSIM/scenario-template <https://github.com/named-data-ndnSIM/scenario-template>).  It will speed up your compilation times and the default build script has more straightforward assumptions on where the code is.
> 
> The error simply tells that you need to properly link your strategy to the scenario.  Given I don't know where you put your strategy code, I cannot tell more.  With the skeleton scenario, you simply need to put it in extensions/ folder.  If you prefer using examples/ folder, then you need to create a folder, whose name is exactly as your scenario name, but without .cpp extension and put the code there.  Alternatively, you need to modify wscript in examples folder and add all necessary dependencies for your scenario.
> 
> --
> Alex
> 
>> On Dec 17, 2016, at 7:33 PM, John Baugh <jpbaugh at umich.edu <mailto:jpbaugh at umich.edu>> wrote:
>> 
>> ndnSIM friends,
>> 
>> I've been working on creating a custom strategy, and I can't seem to figure out why it's generating the errors that it is.
>> 
>> 
>> Here are the related files:
>> 
>> The errors: 
>> https://drive.google.com/open?id=1bk4IKf2nRtq2lMjtoQFX4_MqC8Sjuvirdof2CezRWEQ <https://drive.google.com/open?id=1bk4IKf2nRtq2lMjtoQFX4_MqC8Sjuvirdof2CezRWEQ>
>> 
>> Test file using the strategy
>> https://drive.google.com/open?id=0By9ufeKqmJYYeC05SUc3b2lQekk <https://drive.google.com/open?id=0By9ufeKqmJYYeC05SUc3b2lQekk>
>> 
>> The Custom CS I'm using:
>> https://drive.google.com/open?id=0By9ufeKqmJYYNHNRbzdGaWpLUlE <https://drive.google.com/open?id=0By9ufeKqmJYYNHNRbzdGaWpLUlE>
>> 
>> The Custom Strategy files:
>> https://drive.google.com/open?id=0By9ufeKqmJYYQzBqVl9Gck5mYzA <https://drive.google.com/open?id=0By9ufeKqmJYYQzBqVl9Gck5mYzA>
>> 
>> https://drive.google.com/open?id=0By9ufeKqmJYYa2lObnltV1ZRUlE <https://drive.google.com/open?id=0By9ufeKqmJYYa2lObnltV1ZRUlE>
>> 
>> 
>> 
>> Any help would be appreciated.
>> 
>> Thanks,
>> 
>> John
>> _______________________________________________
>> ndnSIM mailing list
>> ndnSIM at lists.cs.ucla.edu <mailto:ndnSIM at lists.cs.ucla.edu>
>> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim <http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim>
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20161218/0f325579/attachment-0001.html>


More information about the ndnSIM mailing list