S
Suri
hi im trying to run this simple program. any help shall be appreciated
..pls see error message.
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
int main()
{
double pic;
pic= 4.0 * atan(1.0);
printf("pi is = %f \n",pic);
}
error when i try to compile ...
[harshit@localhost ~]$ gcc harshit.c
/tmp/ccRf4QzM.o(.text+0x1b): In function `main':
: undefined reference to `atan'
collect2: ld returned 1 exit status
..pls see error message.
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
int main()
{
double pic;
pic= 4.0 * atan(1.0);
printf("pi is = %f \n",pic);
}
error when i try to compile ...
[harshit@localhost ~]$ gcc harshit.c
/tmp/ccRf4QzM.o(.text+0x1b): In function `main':
: undefined reference to `atan'
collect2: ld returned 1 exit status