I try to link LLVM library to build my android NDK application, but the following link error appear : ############################ ERROR MESSAGE ############### /opt/toolchain/android_404/work_dir//out/target/product/generic_x86/obj/STATIC_LIBRARIES//libLLVMCodeGen_intermediates/libLLVMCodeGen.a(RenderMachineFunction.o): In function `~basic_ios': /opt/toolchain/android_404/work_dir/external/stlport/stlport/stl/_ios.h:59: undefined reference to `std::ios_base::~ios_base()' /opt/toolchain/android_404/work_dir//out/target/product/generic_x86/obj/STATIC_LIBRARIES//libLLVMCodeGen_intermediates/libLLVMCodeGen.a(RenderMachineFunction.o): In function `~basic_streambuf': /opt/toolchain/android_404/work_dir/external/stlport/stlport/stl/_streambuf.c:41: undefined reference to `std::locale::~locale()' /opt/toolchain/android_404/work_dir/external/stlport/stlport/stl/_streambuf.c:41: undefined reference to `std::locale::~locale()' /opt/toolchain/android_404/work_dir//out/target/product/generic_x86/obj/STATIC_LIBRARIES//libLLVMCodeGen_intermediates/libLLVMCodeGen.a(RenderMachineFunction.o): In function `std::basic_streambuf<char, std::char_traits<char> >::pubimbue(std::locale const&)': /opt/toolchain/android_404/work_dir/external/stlport/stlport/stl/_streambuf.c:47: undefined reference to `std::locale::locale(std::locale const&)' /opt/toolchain/android_404/work_dir/external/stlport/stlport/stl/_streambuf.c:48: undefined reference to `std::locale::operator=(std::locale const&)' /opt/toolchain/android_404/work_dir//out/target/product/generic_x86/obj/STATIC_LIBRARIES//libLLVMCodeGen_intermediates/libLLVMCodeGen.a(RenderMachineFunction.o): In function `std::basic_ios<char, std::char_traits<char> >::imbue(std::locale const&)': /opt/toolchain/android_404/work_dir/external/stlport/stlport/stl/_ios.c:70: undefined reference to /opt/toolchain/android_404/work_dir//out/target/product/generic_x86/obj/STATIC_LIBRARIES//libLLVMCodeGen_intermediates/libLLVMCodeGen.a(RenderMachineFunction.o): In function `std::ios_base::_M_check_exception_mask()': /opt/toolchain/android_404/work_dir/external/stlport/stlport/stl/_ios_base.h:191: undefined reference to `std::ios_base::_M_throw_failure()' /opt/toolchain/android_404/work_dir/external/stlport/stlport/stl/_ios_base.h:191: undefined reference to `std::ios_base::_M_throw_failure()' /opt/toolchain/android_404/work_dir/external/stlport/stlport/stl/_ios_base.h:191: undefined reference to `std::ios_base::_M_throw_failure()' ########################################################## My Android.mk as the following:
include $(CLEAR_VARS) LOCAL_MODULE := testLLVM_LIB_DIR := $(ANDROID_SOURCE)/out/target/product/generic_x86 /obj/STATIC_LIBRARIES/ LLVM_LIBS := $(LLVM_LIB_DIR)/libLLVMCodeGen_intermediates/libLLVMCodeGen.a LOCAL_LDLIBS := -L$(ANDROID_SDK) -llog $(LLVM_LIBS) -lstdc++ LOCAL_SRC_FILES += path.c include $(BUILD_SHARED_LIBRARY) My Application.mk is the following: APP_ABI := x86 APP_STL:=stlport_static APP_CFLAGS += -Icommon/include -DMODET STLPORT_FORCE_REBUILD := true APP_OPTIM :=debug Anyone has idea to solve such build issues? Thanks MK -- www.skyeye.org -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en