Topic locked

NDK build error

March 20, 2014 - 3:02pm #1

Hi there,

I'm having a problem regarding building my c++ code.

When attempting to compile, i get the following output:

"D:\\android\\android-ndk-r8e\\ndk-build.cmd" all
Gdbserver      : [arm-linux-androideabi-4.6] libs/armeabi/gdbserver
Gdbsetup       : libs/armeabi/gdb.setup
Gdbserver      : [arm-linux-androideabi-4.6] libs/armeabi-v7a/gdbserver
Gdbsetup       : libs/armeabi-v7a/gdb.setup
"Compile++ arm  : ImageTargets <= ImageTargets.cpp
SharedLibrary  : libImageTargets.so
D:/android/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: error: ./obj/local/armeabi/libstdc++.a:1:1: syntax error, unexpected '!', expecting $end
D:/android/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: error: ./obj/local/armeabi/libstdc++.a: not an object or archive
collect2: ld returned 1 exit status
make: *** [obj/local/armeabi/libImageTargets.so] Error 1

I have no idea why it doesn't work since I have another project which is set up pretty much the same way.

Especially this part: syntax error, unexpected '!', expecting $end seems odd.

What is the problem here?

Thanks a lot in advance!

 

NDK build error

March 21, 2014 - 1:24am #3

Good.

NDK build error

March 20, 2014 - 4:00pm #2

found the error:

I had to delete the obj folder -> afterwards it was successfully build

Topic locked