Dear Ankur, it give this error as you are not linking to maths library. You need to find out gcc equivalent of: cc -lm xyz.c if you want more information, please google with error message as search string. Thanks and regards,
Nalin On 1/13/10, 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 > > please help me to be able to use the library functions in my program > -- Sent from my mobile device
-- l...@iitd - http://tinyurl.com/ycueutm
