-3
#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 to
SQRT” 铛:错误:连接器命令,退出代码1失败(使用-v看调用)如何使用clang与math.h编译c文件?
如果你谷歌的错误信息,数以千计的解决方案出现。 – 2013-05-04 03:44:46