math 函数
#include <stdio.h>
#include <math.h>
int main() {
double aa=0.5;
double bb;
bb=tan(aa);
printf("%ld",bb);
return 0;
}
~
编绎的时候怎么总是报这样的错误呀.
/tmp/cc6GcPPV.o(.text+0x2c): In function `main':
: undefined reference to `sin'
collect2: ld returned 1 exit status