Revision history [back]

click to hide/show revision 1
initial version

I found the reason and the solution. The symbols have already been defined in the libajrouter.a and liballjoyn.a, what I need to do is just to put the .o file in front of the libs, such as:

LOCAL_LDLIBS := \
-L$(ALLJOYN_PATH) \
-lGLESv2 -llog -lz -ldl \
-lcrypto -lssl \
$(ALLJOYN_PATH)/BundledRouter.o \
-lajrouter -lalljoyn -lalljoyn-daemon -lbbdaemon-lib

Refer to: http://stackoverflow.com/questions/45135/linker-order-gcc