Linking error - undefined reference to`typeinfo for ns3::RealtimeSimulatorImpl' and `ns3::RealtimeSimulatorImpl::ScheduleRealtimeNowWithContext(unsigned int, ns3::EventImpl*)'

646 views
Skip to first unread message

picnicman

unread,
Dec 9, 2011, 9:41:38 AM12/9/11
to ns-3-users
Hi,

I am getting this error when trying to compile my code.

"debug/libns3.so: undefined reference to `typeinfo for
ns3::RealtimeSimulatorImpl'
debug/libns3.so: undefined reference to
`ns3::RealtimeSimulatorImpl::ScheduleRealtimeNowWithContext(unsigned
int, ns3::EventImpl*)'
collect2: ld returned 1 exit status
Waf: Leaving directory `/home/smokie/simulador/copia/build'
Build failed: -> task failed (err #1):
{task: cxx_link uan-cw-example_1.o -> uan-cw-example}"

Anyone can help me?

Thanks!
Regards,
Mauro

Vedran Miletić

unread,
Dec 9, 2011, 10:17:21 AM12/9/11
to ns-3-...@googlegroups.com
2011/12/9 picnicman <magoc...@gmail.com>:

Hi Mauro, are you using ns-3-dev or a release? Are you using waf?

Vedran

Mauro González

unread,
Dec 9, 2011, 10:47:21 AM12/9/11
to ns-3-...@googlegroups.com
Hi Vedran,

I am using ns-3.9 and waf.

Thanks!
Regards,
Mauro

2011/12/9 Vedran Miletić <riv...@gmail.com>

Vedran

--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To post to this group, send email to ns-3-...@googlegroups.com.
To unsubscribe from this group, send email to ns-3-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ns-3-users?hl=en.


Vedran Miletić

unread,
Dec 9, 2011, 11:02:02 AM12/9/11
to ns-3-...@googlegroups.com
2011/12/9 Mauro González <magoc...@gmail.com>:

> Hi Vedran,
>
> I am using ns-3.9 and waf.
>
> Thanks!
> Regards,
> Mauro

Sorry, I don't have much experience with non-modular ns-3, but this is
a linking issue and it seems that your headers and libraries are not
the same version.

Vedran

Mauro González

unread,
Dec 9, 2011, 11:04:25 AM12/9/11
to ns-3-...@googlegroups.com

Mm, do you know how can verify it?


Vedran

--
You received this message because you are subscribed to the Google Groups "ns-3-users" ...

Vedran Miletić

unread,
Dec 9, 2011, 11:09:59 AM12/9/11
to ns-3-...@googlegroups.com
Do a ./waf clean and ./waf build.

If this doesn't help, than somehow your project isn't linked to right libraries.

Vedran

2011/12/9 Mauro González <magoc...@gmail.com>:

Mauro González

unread,
Dec 9, 2011, 11:14:00 AM12/9/11
to ns-3-...@googlegroups.com
Ok, thanks Vedran.

I will try to do that and if i have any problem i will tell you.

Regards,
Mauro

2011/12/9 Vedran Miletić <riv...@gmail.com>
Do a ./waf clean and ./waf build.
--

Mauro González

unread,
Dec 9, 2011, 3:03:56 PM12/9/11
to ns-3-...@googlegroups.com
I am getting this error when i run "./waf build":

[ 763/1593] cxx: src/devices/emu/emu-net-device.cc -> build/debug/src/devices/emu/emu-net-device_1.o
In file included from ../src/devices/emu/emu-net-device.cc:19:
../src/devices/emu/emu-net-device.h:36: fatal error: ns3/realtime-simulator-impl.h: No such file or directory
compilation terminated.
Waf: Leaving directory `/home/smokie/simulador/copia/build'
Build failed:  -> task failed (err #1): 
{task: cxx emu-net-device.cc -> emu-net-device_1.o}
Reply all
Reply to author
Forward
0 new messages