[Ns-developers] Linking issues between modules in ns-3.11
Kamakshi Sirisha Pathapati
kamipks at ittc.ku.edu
Tue Feb 7 08:26:46 PST 2012
I have tried adding the module within the wscript to ensure dependencies
between the two modules but I when I tried to build it I did not see any
build results and it would run blank after the ./waf is issued.
I use the "node->GetObject<AeroNPL3Protocol> ()" function to get the
required object and I see that there is no dependency issue between any
other module and the newer module, except for the src/internet.
Please let me know if I could be wrong while doing the above.
> On Mon, 06 Feb 2012 22:35:13 +0400, Kamakshi Sirisha Pathapati
> <kamipks at ittc.ku.edu> wrote:
>> I am curently working on implementing a transport protocol on the
>> version. I am facing a few linking issues between the src/internet
>> and another new module added to ns3. While trying to obtain an object
>> a class I get the following error:
>> [1300/1365] cxx_link: build/debug/utils/print-introspected-doxygen_4.o
>> debug/libns3-internet.so: undefined reference to `typeinfo for
>> debug/libns3-internet.so: undefined reference to
>> collect2: ld returned 1 exit status
>> Could you direct me to what causes this error?
>> I understand the error might be with my module but any help in this
>> will be greatly appreciated.
> It looks like, you should edit appropriate wscript's to specify correct
> dependencies between your new modules and existing ones.
> In particular, modify 'src/internet/wscript' for line
> obj = bld.create_ns3_module('internet', ['bridge', 'mpi', 'network',
> to contain your module too.
> Andrey Mazo.
More information about the Ns-developers