This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Correct way of linking with a shared library?
- To: Johann Petrak <johann at ai dot univie dot ac dot at>
- Subject: Re: Correct way of linking with a shared library?
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 17 Dec 1998 17:30:30 -0200
- Cc: egcs at egcs dot cygnus dot com
- References: <36790EF8.A9286F1A@ai.univie.ac.at>
On Dec 17, 1998, Johann Petrak <johann@ai.univie.ac.at> wrote:
> I am pretty sure, that the method using -lSHLIB
> should work
Not really. Creating and linking with shared libraries is so
different from one platform to another that we've gone to the trouble
of creating an application that will help you do that. Take a look at
GNU libtool, at http://www.gnu.org/software/libtool/libtool.html
On several operating systems, creating a file name libfoo.so.N.M, and
creating a link from libfoo.so to libfoo.so.N.M should do it. But on
some systems it's called .dll or .sl, and others don't even support
shared libraries, or don't make distinctions between static and shared
libraries...
--
Alexandre Oliva http://www.dcc.unicamp.br/~oliva aoliva@{acm.org}
oliva@{dcc.unicamp.br,gnu.org,egcs.cygnus.com,samba.org}
Universidade Estadual de Campinas, SP, Brasil