Hi,
I just need some urgent help. How can I instruct an android
project to use the g++ compiler, instead of the standard gcc compiler.
I am trying to link a c++ program with the ustl C++ libraries, but I
am getting errors related to using gcc instead of g++ as described
here: http://www.network-theory.co.uk/docs/gccintro/gccintro_54.html
error: undefined reference to `__gxx_personality_v0'
Here is how my make file looks like:
Best regards,
Elvis
# ---------------------------------------
# Build libserial-1.6.0rc1 library
#
# Output: libserial.so
# ---------------------------------------
#ifneq ($(TARGET_ARCH),arm)
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_CXXFLAGS += -Weffc++ -g -fhandle-exceptions -DPLATFORM_ANDROID
LOCAL_SRC_FILES := src/SerialStreamBuf.cc src/SerialStream.cc src/
SerialPort.cpp src/PosixSignalDispatcher.cpp
LOCAL_C_INCLUDES := \
$(LOCAL_PATH)/include \
$(LOCAL_PATH)/include/libustl \
src/SerialStreamBuf.h src/SerialStream.h src/SerialPort.h src/
PosixSignalDispatcher.h
LOCAL_SHARED_LIBRARIES := \
libcutils \
libutils
LOCAL_STATIC_LIBRARIES := \
libustl
LOCAL_MODULE:= libserial
LOCAL_COPY_HEADERS_TO := libserial
LOCAL_COPY_HEADERS := src/SerialStreamBuf.h src/SerialStream.h src/
SerialPort.h
include $(BUILD_SHARED_LIBRARY)
#endif
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"android-framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-framework?hl=en
-~----------~----~----~----~------~----~------~--~---