Re: weird C problem [SOLVED]

2010-08-11 Thread Dj YB
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

Re: weird C problem

2010-08-11 Thread Ralf Corsepius
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

weird C problem

2010-08-11 Thread Dj YB
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: