NDK do not find the standard C++ libraries
Posted
by
Marcos Vasconcelos
on Stack Overflow
See other posts from Stack Overflow
or by Marcos Vasconcelos
Published on 2011-01-06T16:49:01Z
Indexed on
2011/01/06
16:54 UTC
Read the original article
Hit count: 547
Hi, I'm trying to compile a native program for android.
But when runnning the ndk-build command I got the following result.
/home/marcos/dev/workspace/rmsdk.native.wraper/jni/include-all/uft_alloc.h:26:21: error: stdexcept: No such file or directory
/home/marcos/dev/workspace/rmsdk.native.wraper/jni/include-all/uft_alloc.h:27:18: error: limits: No such file or directory
stdexcept and limits are part of the std C++ lib.
This is my Android.mk
LOCAL_PATH := $(call my-dir)
MY_PATH := $(LOCAL_PATH)
include $(call all-subdir-makefiles)
LOCAL_PATH := $(MY_PATH)
include $(CLEAR_VARS)
LOCAL_LDLIBS := -llog
LOCAL_MODULE := rmsdk
LOCAL_SRC_FILES := curlnetprovider.cpp RMServices.cpp
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include-all
LOCAL_STATIC_LIBRARIES := adept cryptopenssl curl dp expat fonts hobbes jpeg mschema png t3 xml zlib
include $(BUILD_SHARED_LIBRARY)
I should explicit tell that it's a C++ source?
© Stack Overflow or respective owner