undefined references to cxa, gxx and cxx functions

312 views
Skip to first unread message

ParanoidAndroid

unread,
Feb 22, 2010, 5:15:07 PM2/22/10
to android-ndk
I get some errors like those below. I think it has something to do
with missing ARM EABI libraries. Any ideas?

home/mike/dev/sdks/android-ndk-1.6_r1/apps/test/project/libs/armeabi/
libBasicUsageEnvironment.a(DelayQueue.o): In function
`DelayQueue::DelayQueue()':
DelayQueue.cpp:(.text+0x698): undefined reference to
`__cxa_end_cleanup'
/home/mike/dev/sdks/android-ndk-1.6_r1/apps/test/project/libs/armeabi/
libBasicUsageEnvironment.a(DelayQueue.o):(.ARM.extab+0x0): undefined
reference to `__gxx_personality_v0'
/home/mike/dev/sdks/android-ndk-1.6_r1/apps/test/project/libs/armeabi/
libBasicUsageEnvironment.a(DelayQueue.o):(.rodata+0x3c): undefined
reference to `vtable for __cxxabiv1::__si_class_type_info'
/home/mike/dev/sdks/android-ndk-1.6_r1/apps/test/project/libs/armeabi/
libBasicUsageEnvironment.a(DelayQueue.o):(.rodata+0x5c): undefined
reference to `vtable for __cxxabiv1::__class_type_info'

David Turner

unread,
Feb 22, 2010, 6:26:07 PM2/22/10
to andro...@googlegroups.com
What did you do exactly to get these errors ?


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


ParanoidAndroid

unread,
Feb 23, 2010, 3:59:11 PM2/23/10
to android-ndk
I compiled live555 with the NDK as static libraries and now I am
trying to include those libraries within my Android native code where
I use a C++ file. Taht file has 2 includes:

#include <liveMedia.hh>
#include <BasicUsageEnvironment.hh>

The errors occurs whenn I call my Android.mk file.
The problem is seems to be with the second include. The first one does
not cause an error.

On 23 Feb., 00:26, David Turner <di...@android.com> wrote:
> What did you do exactly to get these errors ?
>

> On Mon, Feb 22, 2010 at 2:15 PM, ParanoidAndroid <bestpriv...@googlemail.com


>
> > wrote:
> > I get some errors like those below. I think it has something to do
> > with missing ARM EABI libraries. Any ideas?
>
> > home/mike/dev/sdks/android-ndk-1.6_r1/apps/test/project/libs/armeabi/
> > libBasicUsageEnvironment.a(DelayQueue.o): In function
> > `DelayQueue::DelayQueue()':
> > DelayQueue.cpp:(.text+0x698): undefined reference to
> > `__cxa_end_cleanup'
> > /home/mike/dev/sdks/android-ndk-1.6_r1/apps/test/project/libs/armeabi/
> > libBasicUsageEnvironment.a(DelayQueue.o):(.ARM.extab+0x0): undefined
> > reference to `__gxx_personality_v0'
> > /home/mike/dev/sdks/android-ndk-1.6_r1/apps/test/project/libs/armeabi/
> > libBasicUsageEnvironment.a(DelayQueue.o):(.rodata+0x3c): undefined
> > reference to `vtable for __cxxabiv1::__si_class_type_info'
> > /home/mike/dev/sdks/android-ndk-1.6_r1/apps/test/project/libs/armeabi/
> > libBasicUsageEnvironment.a(DelayQueue.o):(.rodata+0x5c): undefined
> > reference to `vtable for __cxxabiv1::__class_type_info'
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "android-ndk" group.
> > To post to this group, send email to andro...@googlegroups.com.
> > To unsubscribe from this group, send email to

> > android-ndk...@googlegroups.com<android-ndk%2Bunsu...@googlegroups.com>

Цветко ЛАГАЈОВИЋ

unread,
Feb 27, 2010, 3:11:25 AM2/27/10
to andro...@googlegroups.com
Hi Paranoid,

Exceptions and RTTI won't work in Android.

The link errors you are getting are related to RTTI (run-time type info). Normally, C++ code should be compiled with -fno-rrti flag. But if you do use dynamic_cast and other RTTI-related calls, then it won't compile neither.

Are you sure you use the NDK-provided gcc builds, an not only the NDK libraries ?

To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages