On Mon, Dec 04, 2000 at 06:17:09PM +0100, Baranyai L�szl� wrote:
> Dear Cooker members!
>
> My name is Laszlo. I have downloaded Mandrake7.2 and installed,
> but gcc still requires something I do not know. When I tried to compile
> my programs, gcc replied:
>
> /tmp/ccF2y6Yo.o: In function `main':
> /tmp/ccF2y6Yo.o(.text+0x86): undefined reference to `sin'
> collect2: ld returned 1 exit status
>
> the same happens when I want to use other functions listed in
> "math.h": sqrt, pow, etc.
>
> Could you possibly help me? Any suggestion would be appreciated.
>
you should add -lm to your compile line:
gcc myprog.c -o myprog -lm
--
[EMAIL PROTECTED]