On Wed, Jan 13, 2010 at 11:12 AM, ankur <[email protected]> wrote:

> hi all. i am using the the gcc version 4.2.4 (Debian 4.2.4-1).  i am
> including the library math.h in a C code so as to use the sqrt()
> function. on compilation of the program, it is showing the following
> error:
>
> undefined reference to sqrt
>
> i tried to look up the man pages by the command "man 3 sqrt" and it is
> giving the message
>
> No manual entry for sqrt in section 3
>
>
gcc -lm sourcefile.c


[1] http://bytes.com/topic/c/answers/519717-how-use-sqrt-function-gcc

satyaakam.net
-- 
l...@iitd - http://tinyurl.com/ycueutm

Reply via email to