[Ns-developers] Linking issues between modules in ns-3.11

Andrey Mazo mazo at iitp.ru
Tue Feb 7 01:57:06 PST 2012


Hi,

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 ns-3.11
> version. I am facing a few linking issues between the src/internet module
> and another new module added to ns3. While trying to obtain an object from
> a class I get the following error:
>
> [1300/1365] cxx_link: build/debug/utils/print-introspected-doxygen_4.o ->
> build/debug/utils/print-introspected-doxygen
> debug/libns3-internet.so: undefined reference to `typeinfo for
> ns3::AeroNPL3Protocol'
> debug/libns3-internet.so: undefined reference to
> `ns3::AeroNPL3Protocol::GetTypeId()'
> 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 regard
> 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', 'core'])
to contain your module too.

-- 
Andrey Mazo.


More information about the Ns-developers mailing list