[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-developers] Simple Math Problem (and no - it's not MySQL related)
- Subject: Re: [cobalt-developers] Simple Math Problem (and no - it's not MySQL related)
- From: Tim Hockin <thockin@xxxxxxxxxx>
- Date: Wed May 31 13:54:08 2000
- Organization: Cobalt Networks
Remy Baker wrote:
>
> Ok, this should be a really simple question for someone on the list.
>
> I am trying to port some programs from DOS to my RaQ2, everything was going
> along great until I ran into a program that calls some pretty basic math
> functions. Whenever I try accessing any of the math.h functions (sqrt, log,
> etc) I get the following error:
>
> $ gcc mathtest.c
> /tmp/cca308401.o: In function `main':
> mathtest.c(.text+0x48): undefined reference to `sqrt'
> collect2: ld returned 1 exit status
add -lm to your compile string to add the math library
--
Tim Hockin
Software Engineer / OS Engineer
Cobalt Networks
thockin@xxxxxxxxxx