undefined reference to 链接错误
原因今天编译一个C文件,输入下面的代码后GOP12.c文件代码大致为#include#include#includeint main(int argc,char *argv[]){ //某个地方用到了数学函数}GCC编译该文件gcc -o gop12 GOP12.c出现错误/tmp/ccGjWwZ6.o: In function `main':GOP12.c:(.text+0x346): undefined reference to `ceil'GOP12.





