Basic questions on linking static and dynamic libraries
From: Nilo (iamnilo_at_hotmail.com)
Date: 03/09/05
- Next message: Måns Rullgård: "Re: Basic questions on linking static and dynamic libraries"
- Previous message: guruteck_at_gmail.com: "Interrupts, hardware exceptions, and signals"
- Next in thread: Måns Rullgård: "Re: Basic questions on linking static and dynamic libraries"
- Reply: Måns Rullgård: "Re: Basic questions on linking static and dynamic libraries"
- Reply: Peter T. Breuer: "Re: Basic questions on linking static and dynamic libraries"
- Reply: nilo: "Re: Basic questions on linking static and dynamic libraries"
- Reply: James McIninch: "Re: Basic questions on linking static and dynamic libraries"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 09 Mar 2005 15:04:46 +0100
Hi,
I hope this is not too basic for this forum.
Two questions I couldn't really find an answer to in the books I have. I
don't have any kind of disturbing problem, I'm just annoyed not to
understand 100% how it works.
- There don't seem to be any environment variable holding library paths on
my PC (SuSE 9.0). I can still compile and run basic C code, so gcc and my
executables definitely find "libc.so.6 => /lib/i686/libc.so.6" for example.
If I type "env" in bash (same user as I compile with), I get neither
$LD_LIBRARY_PATH nor any other variable holding a /lib or /usr/lib kind of
path. Where are those path stored?
- Why do .a files always seem to be much larger than corresponding .so files
(between 3 and 10 times bigger). Shouldn't there just be a format
difference between those two files, leading to files with a similar size?
-rw-r--r-- 1 root root 13553180 2003-09-23 18:04 libc.a
-rwxr-xr-x 1 root root 1461208 2003-09-24 01:05 /lib/i686
libc.so.6
Thanks in advance,
Nilo
- Next message: Måns Rullgård: "Re: Basic questions on linking static and dynamic libraries"
- Previous message: guruteck_at_gmail.com: "Interrupts, hardware exceptions, and signals"
- Next in thread: Måns Rullgård: "Re: Basic questions on linking static and dynamic libraries"
- Reply: Måns Rullgård: "Re: Basic questions on linking static and dynamic libraries"
- Reply: Peter T. Breuer: "Re: Basic questions on linking static and dynamic libraries"
- Reply: nilo: "Re: Basic questions on linking static and dynamic libraries"
- Reply: James McIninch: "Re: Basic questions on linking static and dynamic libraries"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|