开发者

stlport undefined references

I'm trying to do some work with the version of stlport in t开发者_开发问答he froyo source. I'm getting

 stlport/stlport/stl/_alloc.h:158: undefined reference to `std::__node_alloc::_M_allocate(unsigned int&)'

and

 stlport/stlport/stl/_alloc.h:161: undefined reference to `std::__node_alloc::_M_deallocate(void*, unsigned int)'

I found this page and tried the -D flag he recommended, but it didn't work.: http://www.philhassey.com/blog/2010/07/21/android-day-2-the-ndk/

Any help is greatly appreciated.


Turns out I had the APP_STL := stlport_static in the wrong file. It goes in Application.mk. Not Android.mk. Not too sure why that matters though.


Its an android ndk problem. Below is the discussion regarding this issue https://groups.google.com/forum/#!msg/android-ndk/1Q4Pp5mkpYU/i8iFayGWeOkJ

Bug fixed in the upcoming Release http://code.google.com/p/android/issues/detail?id=16627

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜