#include <stdio.h>
int main()
{
printf("hello world\n");
exit(0);
}
以上是我的程序代码,mk文件如下:
include $(CLEAR_VARS)
LOCAL_SRC_FILES:=a.c
LOCAL_MODULE := a
include $(BUILD_EXECUTABLE)
使用ndk-build编译
执行结果如下:
[2] + Stopped (signal) ./a
[1] Segmentation fault ./a
求解只是个hello world也会溢出么?试过将exit(0)去掉或改为return 0都没用
[注意]APP应用上架合规检测服务,协助应用顺利上架!