Linker

Pàgina inicial

Reply to this message
Autor: Patrick Dupre
Data:  
A: guilde
Assumpte: Linker
Bonjour,

Je comprends plus rien
Je dois faire:
gcc -o test test.o cwerf.o /home/pdupre/bbl_c/timer.o -lm -L/home/pdupre/mylib -lmyf2c -u MAIN__

si je fais:
gcc -o test test.o cwerf.o /home/pdupre/bbl_c/timer.o -lm -L~/mylib -lmyf2c -u MAIN__
/usr/bin/ld: cannot find -lmyf2c

Pourquoi ~ n'est pas le $HOME?

Aussi,
Voici ce que j'ai dans LD_LIBRARY_PATH

echo $LD_LIBRARY_PATH
:/home/pdupre/mylib
et j'ai aussi une erreur!
gcc -o test test.o cwerf.o /home/pdupre/bbl_c/timer.o -lm -lmyf2c -u MAIN__
/usr/bin/ld: cannot find -lmyf2c


Pourquoi le linker semble-til n'utiliser pas a variable LD_LIBRARY_PATH?

Merci de vos lumieres.

===========================================================================
 Patrick DUPRÉ                                 | | email: pdupre@???
 Laboratoire de Physico-Chimie de l'Atmosphère | |
 Université du Littoral-Côte d'Opale           | |
 Tel.  (33)-(0)3 28 23 76 12                   | | Fax: 03 28 65 82 44
 189A, avenue Maurice Schumann                 | | 59140 Dunkerque, France
===========================================================================