VYRESENO: Re: ld: cannot open -lXpm.so: No such file or directory

Michal Krause mike na navrcholu.cz
Středa Leden 20 17:09:30 CET 1999


Dne 20. 1. 1999 David Sauer napsal:

> Myslím, že manpage asi bude už trochu out-date. Info dokumentace
> příkazu ld říká:
> 
> `-lARCHIVE'
> `--library=ARCHIVE'
>      Add archive file ARCHIVE to the list of files to link.  This
>      option may be used any number of times.  `ld' will search its
>      path-list for occurrences of `libARCHIVE.a' for every ARCHIVE
>      specified.
> 
>      On systems which support shared libraries, `ld' may also search for
>      libraries with extensions other than `.a'.  Specifically, on ELF
>                                                                   ^^^
>                                  
>      and SunOS systems, `ld' will search a directory for a library with
>      an extension of `.so' before searching for one with an extension of
>      `.a'.  By convention, a `.so' extension indicates a shared library.

Takze v pripade, ze knihovna existuje i v shared verzi, nebude program 
staticky slinkovany? Nebo i z shared knihovny lze vytahnout staticky kod a 
prilinkovat ho?

Co kdyz budu chtit zkompilovat program, ktery bude mit urcite veci staticky
(treba aby si lidi nemuseli tahat jeste nejakou knihovnu) a jine zase
dynamicky (kazdy prece ma libc :)

S pozdravem

Michal Krause                                                       /\
ICQ: 7665279                                                     /\/  \
email: mike na navrcholu.cz ______ http://www.4web.cz/ ______  NAVRCHOLU.cz


Další informace o konferenci Linux