Re: Linker

Pàgina inicial

Reply to this message
Autor: Regis Perdreau
Data:  
A: Patrick Dupre
CC: guilde
Assumpte: Re: Linker
Il me semble que pour le tilde soit compris et étendu par le shell, il
faut un espace avant, donc un espace entre l'option -L et le ~


Pour LD_LIBRARY_PATH, ça ne marcherait pas ici ça concerne que les
programmes compilés et linkés :)
essayer donc LIBRARY_PATH

http://stackoverflow.com/questions/4250624/ld-library-path-vs-library-path

Le 9 août 2015 00:38, Patrick Dupre <pdupre@???> a écrit :
> 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
> ===========================================================================

>