-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