[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [linux] /usr/include/math.h URGENT



Je viens de le remarquer à l'instant il y a un petit -lm qui est resté dans mon clavier.
Je suis désolé, toutes mes excuses.
Je ne cherchait  pas là ou c'est le plus évidant.(mais j'ai cherché)
Benoît

Merci quand même. :-)



On Tue, 19 Mar 2002 14:55:46 +0100
Pascal Bleser <pascal.bleser@atosorigin.com> wrote:

> ...
> 
> 
> > [~/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
> 
_______________________________________________
Linux Mailing List
Archives: http://unixtech.be/mailman/listinfo/linux