undefined reference to `std::__throw_bad_alloc()

by HV » Fri, 08 Apr 2011 12:39:14 GMT


Sponsored Links
 Hi,

 I'm having this linker error with some of the customized sources. Since 
this is not within any of the bionic libraries, and seems to be defined in 
libstd++ which is part of my toolchain, I'm wondering how to use this within 
Android.mk. 

 I can't give this under LOCAL_SHARED_LIBRARIES right (coz I don't have the 
sources, just the binary)? I've tried using LOCAL_PREBUILT_LIBS and 
LOCAL_LDLIBS but they seem to have no effect.

Thanks
HV

-- 



Re: undefined reference to `std::__throw_bad_alloc()

by HV » Sat, 09 Apr 2011 09:58:25 GMT


 We found a way to do it, add the missing library 
in TARGET_linux-your_architecture.mk file

-- 


Sponsored Links


Re: undefined reference to `std::__throw_bad_alloc()

by HV » Tue, 12 Apr 2011 16:09:54 GMT


 Actually, the real problem was in using LOCAL_WHOLE_STATIC_LIBRARIES which 
includes all dead code. Instead if I just use LOCAL_STATIC_LIBRARIES, it 
doesn't need any of those unresolved externals

-- 



Other Threads

1. Ant build error : package R does not exist

Hello everyone,

I am trying to build my project using ant. I first generate build.xml
file using "android update project" command. Now i want to run it
using ant. When i type "ant debug" commnad it generates error saying
that package R does not exist while it has already been generated in
gen folder by the android update project command.

Plz help.
Thanks
--~--~---------~--~----~------------~-------~--~----~

2. qwerty and numeric keypad

I am porting Android to a device where I need to support qwerty and numeric
keypad on the same device with the same binary.  Just to give folks some
idea - this use case is also applicable to a slider device which may have
numeric keypad on the outside and a qwerty slider keypad.

Looking at kcm files - it looks like we need to declare if its a qwerty or
numeric key mapping.  Is there any way to specify both types of keyboard
support and switch it at runtime base on some event.

If this support is not currently available, can someone provide leads on how
to implement this in the framework?

Thanks,
-Shadow

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. A new Last.fm Scrobbler (and testing it on an HTC Hero)

4. OpenGL ES Pixel Confusion

5. Contact Sync between Phone and Gmail

6. About web browser

7. Detect "running in" Android and access to Command Line parameters