>       /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.

Attachment: pgpUKraBeXZBU.pgp
Description: PGP signature

Reply via email to