2011年3月3日 星期四

[Android] undefined reference to in ndk-build

在ndk-build時, 需要的static library都有定義到

LOCAL_STATIC_LIBRARIES := libABC \
LOCAL_STATIC_LIBRARIES += libCDE \

但卻還是發生undefined reference to `xxxxxx' 時

這時候可能是 static library 的順序不對, 改一下順序再試看看吧
LOCAL_STATIC_LIBRARIES := libCDE \
LOCAL_STATIC_LIBRARIES += libABC \

沒有留言:

張貼留言