[ndnSIM] how to run a scenario written by myself

Alex Afanasyev aa at CS.UCLA.EDU
Wed Mar 2 15:14:08 PST 2016


Which version of ndnSIM you're using and what is <ndnSIM-scenario-scenarios>?  If you're using ndnSIM 2.1 and it is a scenario helper repository, you should use https://github.com/named-data-ndnSIM/scenario-template (commit 2b5b6f55f04982273e62127082a19459ec68ff43 or later)

---
Alex

> On Mar 2, 2016, at 1:23 AM, ChangWei <3193946107 at qq.com> wrote:
> 
> hello,
>     I am a beginner in ndn-simulator.I wrote a simple scenario(test2.cc) to try.The scenario i wrote just like 'ndn-simple.cc'.And i put it in folder<ndnSIM-scenario-scenarios>.Then,when i input 'sudo ./waf --run=test2',there are many errors on my screen,just like
> '/usr/local/include/ns3-dev/ns3/type-id.h:374:1: note: in expansion of macro ‘ATTRIBUTE_HELPER_HEADER’
>  ATTRIBUTE_HELPER_HEADER (TypeId);
>  ^
> In file included from /usr/local/include/ns3-dev/ns3/object-base.h:23:0,
>                  from /usr/local/include/ns3-dev/ns3/object.h:29,
>                  from /usr/local/include/ns3-dev/ns3/scheduler.h:25,
>                  from /usr/local/include/ns3-dev/ns3/calendar-scheduler.h:24,
>                  from /usr/local/include/ns3-dev/ns3/core-module.h:19,
>                  from ../scenarios/test2.cc:3:
> /usr/local/include/ns3-dev/ns3/type-id.h:374:33: warning: extra ‘;’ [-Wpedantic]
>  ATTRIBUTE_HELPER_HEADER (TypeId);
>                                  ^
> In file included from /usr/local/include/ns3-dev/ns3/simulator-impl.h:26:0,
>                  from /usr/local/include/ns3-dev/ns3/default-simulator-impl.h:24,
>                  from /usr/local/include/ns3-dev/ns3/core-module.h:24,
>                  from ../scenarios/test2.cc:3:
> /usr/local/include/ns3-dev/ns3/nstime.h:912:30: warning: extra ‘;’ [-Wpedantic]
>  ATTRIBUTE_VALUE_DEFINE (Time);
>                               ^
> /usr/local/include/ns3-dev/ns3/nstime.h:918:33: warning: extra ‘;’ [-Wpedantic]
>  ATTRIBUTE_ACCESSOR_DEFINE (Time);'
> 
> so, i don't know how to solve it! Please help me!

-------------- 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/20160302/95e0f619/attachment.bin>


More information about the ndnSIM mailing list