【发布时间】:2013-04-28 12:47:03
【问题描述】:
#include <stdio.h>
#include <math.h>
int main()
{
printf("%.81f\n", 1+2*sqrt(3)/(5-0.1));
return 0;
}
输出:
/tmp/a4-4oU730.o:在函数main':
a4.c:(.text+0x4f): undefined reference tosqrt'
clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)
【问题讨论】:
-
如果你用谷歌搜索错误信息,就会出现数千种解决方案。