pacote math
Olá pessoal,
No meu programa em tem
#include <stdio.h>
#include <math.h>
double ran1(long *); // uniform random number, numerical recipies
long int Iran=-1003; // uniform random number, initial value
void precision(void); // essential for LINUX (for ALL programs)
#define PI 3.1415926535897932384626433832795
#define NQ 6 // number of states
mas quando vou compilar dar este erro
wel@Julia:~/Clock$ gcc -o mio Clock_other.c
/tmp/cci9P0nL.o(.text+0x75): In function `main':
: undefined reference to `cos'
/tmp/cci9P0nL.o(.text+0x80): In function `main':
: undefined reference to `exp'
collect2: ld returned 1 exit status
wel@Julia:~/Clock$
ou seja, está parecendo que meu debian sarge não tem o pacote math.h, pois
ele não reconhece nem cos nem a exp.
obrigado
Reply to: