Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems with *.h files in C
Message
From
03/03/2007 07:17:53
Roberto Pungartnik
Kraftkernel Technology
Jundiai, Brazil
 
 
To
05/02/2007 13:49:59
General information
Forum:
Linux
Category:
GPL Languages and compilers
Miscellaneous
Thread ID:
01192519
Message ID:
01200490
Views:
19
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.net
ICQ: 3640553
-------------------------------------------------
Previous
Reply
Map
View

Click here to load this message in the networking platform