Bla*_*ake 2 c math
我已将 math.h 包含在我的 c 文件中,但它保留了提示undefined reference to trunc和 undefined reference to ceil. 我什至没有在我的文件中使用 trunc 。谁能告诉我出了什么问题吗?
undefined reference to trunc
undefined reference to ceil
And*_*i B 5
如果使用 gcc 进行编译,则可能需要添加 -lm 选项来链接到数学库 (libm),例如
gcc test.c -lm
归档时间:
12 年,1 月 前
查看次数:
9149 次
最近记录: