摘要: ceilf是一个在math.h里面的一个数学函数,函数的实现位于 libm.a 库文件中,使用 math.h 中声明的库函数时,gcc命令行必须加-lm选项 这时我们就需要在编译的时候加上-lm参数,即 gcc test.c -o test -lm 如果是用的makefile,就要在相应的文件里面加 阅读全文
posted @ 2021-04-29 16:46 流水灯 阅读(329) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2021-04-29 16:17 流水灯 阅读(1) 评论(0) 推荐(0) 编辑
摘要: exit.c:(.text+0x18): undefined reference to `_exit' when using arm-none-eabi-gcc This happens when compiling a file with arm-none-eabi-gcc in one mach 阅读全文
posted @ 2021-04-29 10:48 流水灯 阅读(2527) 评论(0) 推荐(0) 编辑