[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [linux] /usr/include/math.h URGENT
...
[~/tmp] gcc -Wall -o test test.c
gcc -Wall -lm -o test test.c
^^^
Faut linker la librarie libm.so
/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
C'est un message d'erreur du linker et pas du compilateur, ce qui
signifie qu'il a bien trouvé le header (math.h) mais qu'il ne trouve
pas le symbole comme code compilé.
--
-o) Pascal Bleser ATOS Origin/Aachen(DE) |
/\\ <pascal.bleser@atosorigin.com> |
_\_v <guru@linuxbe.org> |
---------------------------------------------|
Jesus saves,Buddha makes incremental backups :
---------------------------------------------'
_______________________________________________
Linux Mailing List
Archives: http://unixtech.be/mailman/listinfo/linux