GCC link time errors calling trig functions

Robert Parker rlp1938 at gmail.com
Sat Jan 28 10:49:19 UTC 2006


System:
Kubuntu 5.1 amd64
gcc version:
gcc (GCC) 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)

bob at johnket5:~/projects/plate_and_sheet$ gcc -Wall -o pands pands.c
/tmp/cckui0iR.o: In function `dome':
pands.c:(.text+0x6aa): undefined reference to `cos'
collect2: ld returned 1 exit status

What library do I need to link?

Thanks
Bob Parker




More information about the kubuntu-users mailing list