11
为什么必须在C中链接数学库?
如果在C程序中包含<stdlib.h>或<stdio.h>包含C程序,则在编译时不必链接这些程序,但必须在gcc中<math.h>使用链接到,-lm例如: gcc test.c -o test -lm 这是什么原因呢?为什么我必须显式链接数学库,而不是其他库?
254
c
compilation
math.h