我在 android 中构建了一个示例本机应用程序,当我使用 ndk -bild 编译时出现链接问题。我收到以下错误
arm-linux-androideabi-gcc -c -O2 -w -ansi -D_POSIX_SOURCE -I. -I../bozorth/include - I./include/ "-D __MSYS__" "-D__NBISLE__" src/BiomServerComponent.c -o src/BiomServerComponent.o
In file included from src/BiomServerComponent.c:1:0:
f:\android-ndk-r8b\toolchains\arm-linux-androideabi-4.6\prebuilt\windows\bin\../lib/gcc/arm-linux-androideabi/4.6.x-google/include-fixed/stdio.h:50:23: fatal error: sys/cdefs.h: No such file or directory
compilation terminated.
Makefile:25: recipe for target `src/BiomServerComponent.o' failed
我没有找到 sys/cdefs.h 或 sys/_types.h,但我在以下路径中找到了 stdio.h
F:\android-ndk-r8b\platforms\android-9\arch-arm\usr\include
任何人都知道,如何链接这个标准头文件,