Hi Juan Carlos,
To use this function you must instruct gcc to link with math library by adding a -lm in the compilation line.
>Hi, i have linux suse 9 desktop. I am using GCC for compiling programs written in C. My problem is when i use a command or function. For example, if i have " A = sqrt(number);" the compiler says " in function main: undefined reference to sqrt". What can i do for using the math functions provided by math.h?
>i already use the include "math.h"
>thanks.
-------------------------------------------------
Roberto A. Pungartnik
Network Administrator
Jundiai - SP - Brazil
E-Mail:
pungbr@netscape.netICQ: 3640553
-------------------------------------------------