|

楼主 |
发表于 2004-5-9 19:34:22
|
显示全部楼层
用过了,提示错误,sin函数未定义:
/root/tmp/cc4i6vxv.o(.text+0x25): In function `main':
: undefined reference to `sin'
collect2: ld returned 1 exit status
源程序为:
- #include <math.h>
- main()
- {
- int x, y;
- x=1;
- y=sin(x);
- }
复制代码
gcc test.c -o test -g |
|