[ndnSIM] Compile error while adding new topology reader.

Alex Afanasyev alexander.afanasyev at ucla.edu
Sun Feb 8 22:23:25 PST 2015


Hi Anil,

If you haven’t yet, try including nlsr-topology-reader.h into headers part of ndnSIM wscript (add to headers.source inside build function).

There is some weirdness with how NS-3 treats header files, and in some cases you need to do this magic.  Adding to headers.source ensures that the header file is copied into ns3/ directory and can be found.

There are other workarounds, if this one does not work.

In ndnSIM 2.0 this particular part of build system was updated and usage of ns3/-directory includes is eliminated/reduced to bare minimum.

—
Alex

> On Feb 8, 2015, at 9:23 PM, Anil Jangam <anilj.mailing at gmail.com> wrote:
> 
> Hi,
> 
> I have added a new topology reader class to my simulation scenario under folder ndnSIM/plugin/topology. On compilation of this class, I am getting below error.
> 
> Towards this change, I have also included "nlsr-topology-reader.h" file in /ns3/ndnSIM-module.h. The below error is thrown from this file only. I am not sure why this error and how to resolve this.
> 
> I also observed some sort of relationship of topology reader in the ndnSIM/binding/ folder as below.
> 
> grep -l annotated-topology-reader.h *
> modulegen__gcc_ILP32.py
> modulegen__gcc_LP64.py
> 
> I am not sure if there is any relationship of this binding with the below error. Can someone please elaborate?
> 
> Thanks,
> /anil.
> 
> 
> [1289/2530] cxx: src/ndnSIM/examples/ndn-simple-with-pcap.cc -> build/src/ndnSIM/examples/ndn-simple-with-pcap.cc.20.o
> In file included from ../src/ndnSIM/tools/rocketfuel-maps-cch-to-annotaded.cc:24:0:
> ./ns3/ndnSIM-module.h:55:34: fatal error: nlsr-topology-reader.h: No such file or directory
> compilation terminated.
> In file included from ../src/ndnSIM/examples/ndn-nlsr-simple.cc:24:0:
> ./ns3/ndnSIM-module.h:55:34: fatal error: nlsr-topology-reader.h: No such file or directory
> compilation terminated.
> In file included from ../src/ndnSIM/examples/ndn-simple-udp.cc:25:0:
> ./ns3/ndnSIM-module.h:55:34: fatal error: nlsr-topology-reader.h: No such file or directory
> compilation terminated.
> In file included from ../src/ndnSIM/examples/ndn-simple-with-pcap.cc:24:0:
> ./ns3/ndnSIM-module.h:55:34: fatal error: nlsr-topology-reader.h: No such file or directory
> compilation terminated.
> 
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> 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/20150208/fffb9eee/attachment.html>
-------------- 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/20150208/fffb9eee/attachment.bin>


More information about the ndnSIM mailing list