sqrt未定义问题:
hqm@hqm-virtual-machine:~/c/day4/if$ gcc test2.c -o test2.out
/tmp/ccqgBsEH.o:在函数‘main’中:
test2.c:(.text+0x143):对‘sqrt’未定义的引用
collect2: error: ld returned 1 exit status
解决方法:+lm,将数据库链接到其中
hqm@hqm-virtual-machine:~/c/day4/if$ gcc test2.c -o test2.out -lm