> /tmp/cc9WOsLC.o(.text+0x16): undefined reference to `cos' > collect2: ld returned 1 exit status
You need to link against the math library, libm, eg. gcc -o myprog myprog.c -lm Regards, Rob.
pgpUKraBeXZBU.pgp
Description: PGP signature
> /tmp/cc9WOsLC.o(.text+0x16): undefined reference to `cos' > collect2: ld returned 1 exit status
You need to link against the math library, libm, eg. gcc -o myprog myprog.c -lm Regards, Rob.
pgpUKraBeXZBU.pgp
Description: PGP signature