|
我发现我include math.h的时候有很多问题。
#include <math.h>
main()
{
float a, b = 1;
a = sin(b);
}
就这样一个简单的程序在编译的时候确有问题:
/tmp/******.o(.text+0x1f):In function 'main':
:undefined reference to 'sin'
collect2: ld returned 1 exit status.
请教这是怎么回事。在debian下。gcc版本3。3。
同样是math.h库下的fabs()却没有问题.math.h库下的其他函数都不行。 |
|