V
Victo
I tried to use pow() and sin().
but even I included <math.h>,
I can't use the 2 functions....
Why's that????
for example,
#include <stdio.h>
#include <math.h>
int main(void)
{
double a=2;
printf("%lf\n",sin(2));
return 1;
}
it returns the below error
Undefined first referenced
symbol in file
sin /var/tmp//ccJ0ckFm.o
ld: fatal: Symbol referencing errors. No output written to a.out
collect2: ld returned 1 exit status
Why's that???
but even I included <math.h>,
I can't use the 2 functions....
Why's that????
for example,
#include <stdio.h>
#include <math.h>
int main(void)
{
double a=2;
printf("%lf\n",sin(2));
return 1;
}
it returns the below error
Undefined first referenced
symbol in file
sin /var/tmp//ccJ0ckFm.o
ld: fatal: Symbol referencing errors. No output written to a.out
collect2: ld returned 1 exit status
Why's that???