From: "Stefan Monnier" <stefan.monnier@epfl.ch>
Subject: shared libraries
Date: 1995/05/22 [thread overview]
Message-ID: <3pq4go$765@info.epfl.ch> (raw)
How do the .a libraries work ?
While explaining to a friend about the shared libraries, he pointed out to me
"you said all the standard libs were shared, but libc is a .a so it's not
shared". Of course he was right the libc is libc.a and libc.so, but still: it's
shared. So how does it work ?
~/tmp-0> cat test.c
main ()
{ printf("hello"); }
~/tmp-0> cc -o testtata -L. test.c -ltata
~/tmp-0> cc -o testc -L. test.c -lc
~/tmp-0> ls -AlF
total 218
lrwxrwxrwx 1 monnier dilia 15 May 22 15:37 libtata.a@ -> /usr/lib/libc.a
-rw-r--r-- 1 monnier dilia 29 May 22 14:56 test.c
-rwxr-xr-x 1 monnier dilia 23691 May 22 15:43 testc*
-rwxr-xr-x 1 monnier dilia 187477 May 22 15:43 testtata*
~/tmp-0>
Obviously libtata is the exact same thing as libc. Why is libc dynamically
linked whereas libtata is statically linked ? What's the point of .so libraries
then ?
Stefan
next reply other threads:[~1995-05-22 4:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-05-22 4:00 Stefan Monnier [this message]
1995-05-22 4:00 ` shared libraries David Metsky
-- strict thread matches above, loose matches on Subject: below --
1998-09-17 4:00 Shared libraries Peter Thornewell
1998-09-18 4:00 ` Nikola Milutinovic
1998-09-18 4:00 ` Scott J. Tringali
1994-06-29 6:08 Emmett McLean
[not found] ` <jerry.772874169@kenya>
1994-06-29 14:37 ` Burkhard Neidecker-Lutz
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox