On Wednesday August 11 2010 19:39:55 Ralf Corsepius wrote:
> On 08/11/2010 06:31 PM, Dj YB wrote:
> > $ cc a.c
> > /tmp/ccTaon4H.o: In function `main':
> > a.c:(.text+0x3e): undefined reference to `sqrt'
> >
> > to be sure I checked man sqrt:
> >
> > SYNOPSIS
> >
> > #include
> >
> > double sq
On 08/11/2010 06:31 PM, Dj YB wrote:
> Hello,
>
> I have written a small program in C and I am using the math.h library using
> #include
> so far everything is good.
> when using the function sqrt I get the next error:
>
> $ cc a.c
> /tmp/ccTaon4H.o: In function `main':
> a.c:(.text+0x3e): undefine
Hello,
I have written a small program in C and I am using the math.h library using
#include
so far everything is good.
when using the function sqrt I get the next error:
$ cc a.c
/tmp/ccTaon4H.o: In function `main':
a.c:(.text+0x3e): undefined reference to `sqrt'
to be sure I checked man sqrt: