Since the new android update I cannot compile shared objects with ndk-build.
I reinstalled the SDK, NDK and Qualcomm AR SDK and cygwin. I configured correctly the environment paths but the error persists.
I've compiled the san-angeles sample without error, so the problem must be with qualcomm sdk and the new android ndk.
If I return to the ndk r4 it works perfectly!
SDK Android 2.3 (SDK Tools r8)