[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[linux] /usr/include/math.h URGENT
Bonjour,
Comme j'avais un message d'erreur bizarre.
J'ai fais un copier-coller d'un fichier d'aide pour être sur de ne pas avoir fait de faute de frappe:
#include <math.h>
#include <stdio.h>
int main(void)
{
double x = 2.0, y = 3.0;
printf("%f raised to %f is %f\n", x, y, pow(x, y));
return 0;
}
Voici le message:
[~/tmp] gcc -Wall -o test test.c
/tmp/ccWraao4.o: dans la fonction `main':
/tmp/ccWraao4.o(.text+0x2e): référence indéfinie vers `pow'
collect2: ld returned 1 exit status
Mais non je ne rêve pas, et toujours des non de fichier différant :
[~/tmp] gcc -Wall -o test test.c
/tmp/ccKfExKb.o: dans la fonction `main':
/tmp/ccKfExKb.o(.text+0x2e): référence indéfinie vers `pow'
collect2: ld returned 1 exit status
[~/tmp] gcc -Wall -o test test.c
/tmp/ccjU6kXf.o: dans la fonction `main':
/tmp/ccjU6kXf.o(.text+0x2e): référence indéfinie vers `pow'
collect2: ld returned 1 exit status
[~/tmp] gcc -Wall -o test test.c
/tmp/cc2CusLK.o: dans la fonction `main':
/tmp/cc2CusLK.o(.text+0x2e): référence indéfinie vers `pow'
collect2: ld returned 1 exit status
J'ai fais :
grep -r pow /usr/include/*
pow n'est pas définit dans math.h.
Aidez-moi vite ce serait sympa je suis bloqué sur une bêtise.
C'est une deb
Un grand merci.
Benoît.
_______________________________________________
Linux Mailing List
Archives: http://unixtech.be/mailman/listinfo/linux