This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Correct way of linking with a shared library?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]