From: [email protected]
Date: Wed Aug 28 2002 - 01:59:09 CEST
Hi friends.
How can I use the math library? and other librarys
I was trying compile with GCC the follow source file called "root.c", but I
couldnīt:
#include <math.h>
void main(){
float n,root1;
printf("Enter N\n");
scanf("%f",n);
root1= sqrt(n);
printf("The root of %f is %f\n",n,root1);
}
Then...
/# gcc root.c -o root.exe
Then...the message...
/temp/cca032721.o (.text + 0x33): undefined reference to sqrt
Thank you by your help
Carlos Sanchez
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
This archive was generated by hypermail 2.1.6 : Sat Feb 08 2003 - 15:27:22 CET