Hi all,
I'm having a bit of trouble trying to use the libstdc++ STL impl with
the latest NDK. I have a very simple test program that shows this. It
works fine with stlport_static, but I'm going to need RTTI and
exception support (even if I don't turn on exceptions or rtti in the
Application.mk, it still fails). Here are the linker 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.
On Tue, Dec 14, 2010 at 8:24 PM, John Sheehy <she...@gmail.com> wrote:Hi all,
I'm having a bit of trouble trying to use the libstdc++ STL impl with
the latest NDK. I have a very simple test program that shows this. It
works fine with stlport_static, but I'm going to need RTTI and
exception support (even if I don't turn on exceptions or rtti in the
Application.mk, it still fails). Here are the linker errors:Are you cleaning out all of your build artifacts after changing from stlport_static to gnustl_static? I've had issues in the past where changing the STL flag in Application.mk did not cause a proper rebuild so the linker was pulling in object files compiled against one STL implementation and the STL implementation library from another STL implementation. Since the link errors involve exception handling, I'm inclined to believe this to be the case for you as well.
On Wed, Dec 15, 2010 at 1:18 PM, Justin Holewinski <justin.h...@gmail.com> wrote:
On Tue, Dec 14, 2010 at 8:24 PM, John Sheehy <she...@gmail.com> wrote:Hi all,
I'm having a bit of trouble trying to use the libstdc++ STL impl with
the latest NDK. I have a very simple test program that shows this. It
works fine with stlport_static, but I'm going to need RTTI and
exception support (even if I don't turn on exceptions or rtti in the
Application.mk, it still fails). Here are the linker errors:Are you cleaning out all of your build artifacts after changing from stlport_static to gnustl_static? I've had issues in the past where changing the STL flag in Application.mk did not cause a proper rebuild so the linker was pulling in object files compiled against one STL implementation and the STL implementation library from another STL implementation. Since the link errors involve exception handling, I'm inclined to believe this to be the case for you as well.Ah, that's interesting, do you have a simple way to reproduce this problem, I'd like to add a fix for this to the build system.