.c
文件中没有main()
函数时,
//报错
undefined reference to `main'
编译命令 -nostartfiles
gcc AVMdemo.c -nostartfiles -o AVMdemo -lGLESv2 -lEGL
//gcc file.c -nostartfiles -o file -l[链接库名]
.c
文件中没有main()
函数时,
//报错
undefined reference to `main'
编译命令 -nostartfiles
gcc AVMdemo.c -nostartfiles -o AVMdemo -lGLESv2 -lEGL
//gcc file.c -nostartfiles -o file -l[链接库名]