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. selectable AutoCompleteTextView and "filtering" issue

Hi,

I have a problem with AutoCompleteTextView

I have a (clickable) list of objects i.e. when you click on an item
you get to another activity which is guided by that specific item
clicked. I want to use the Autocomplete to search in that list but I
want the same behavior I get with a regular list - an item to be
clicked and processed. Please see my code:



        ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,
                android.R.layout.simple_list_item_1, namesLIST);
        AutoCompleteTextView textView = (AutoCompleteTextView)
findViewById(R.id.list);

        textView.setAdapter(adapter);

Where namesLIST is a String array created specially for the
Autocomplete

Then I do:
                textView.setOnItemClickListener(new OnItemClickListener() {
                        public void onItemClick(AdapterView parent, View v, int 
position,
long id) {
                                showItem(parent,position, id);
                        }
                });

where I tried to see what I get:

        private void showItem(AdapterView parent, int position, long id) {
                Log.d(TAG,"zz position:" + parent.getSelectedItemPosition());
                Log.d(TAG,"selected item:" +parent.getSelectedItem());
                Log.d(TAG,"adapter view:" + parent);
                Log.d(TAG,"position:" + position + " id:" +id);
        }

I saw that I get nothing useful here. Typical output would be:
zz position: -1
selected item: null
adapter view: .....
position: 1 id:1

What am I doing wrong? How can I keep the reference to original items
in the original list?
Maybe I can I use the original objects somehow in Autocomplete?


Thank you for your help!
--~--~---------~--~----~------------~-------~--~----~

2. How to add ScrollView in TableLayout programaticly?

in my code , i did it as follows:

//header should be steady
tableLayout.addView(headTableRow, new TableLayout.LayoutParams());

// add srollview
tableLayout.addView( scrollView, new TableLayout.LayoutParams());

//insert row to scrool view
scrollView.addView(firstTableRow, new TableLayout.LayoutParams());
scrollView.addView(secondTableRow, new TableLayout.LayoutParams());

//....

//====================end

but it doesn't work fine.

any body has a good practice?
or any hint?

thanks in advance.

andric.


--~--~---------~--~----~------------~-------~--~----~

3. Problem inserting location provider kml

4. How do I set a highlight color on an image-based button?

5. ContentObserver does not call onChange if data are changed through separate IntentReceiver?

6. AutoCompleteTextView Problem - Does not display content

7. Question about transparent views