This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Question: dynamic libraries?
Sorry if this isn't immediately useful, but a good introduction can be
found in the book:
"Application Programming for Linux"
(can't remember the Author, yellow in hard cover cover)
I use the options to gcc:
CFLAGS = -g -O2 -shared -fPIC -Wl,-soname,$(SONAME)
where SONAME is the shared libary version number.
(Allows the dynamic linker to do it's thing, when multiple
versions of the library are found).
PaulS
"H . J . Lu" <hjl@lucon.org> writes:
> On Thu, Sep 21, 2000 at 02:57:20PM -0700, Alejandro Arredondo wrote:
> > Hello,
> >
> > I don't know if this is the right place to ask for
> > this question, but I would like to know how can I
> > compile a dynamic library in Linux? or where can I get
> > information about dynamic libraries for Linux?
>
> I have a very old paper:
>
> http://ftp.valinux.com/pub/support/hjl/doc/elf.ps.gz
>
> Some contents are out of date, like libc 5 vs glibc 2. But it may be
> still useful to you.
>
>
> H.J.