[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Where to find basics on creating a shared library?
From: |
Eray Ozkural (exa) |
Subject: |
Re: Where to find basics on creating a shared library? |
Date: |
Mon, 11 Jun 2001 21:07:01 +0300 |
address@hidden wrote:
>
> I have tried a few examples on building a shared library, under SUN SOlaris
> but
> I have problems linking to it at
> run time, unless I preload it.
> Where can I find the correct procedures/examples to
> learn about coding/linkling my own shared library?
The only substantial difference of a library from an executable
is that a library has multiple arbitrary entry points. Under
Solaris, if you have built your shared library correctly you
will only have to include the shared lib paths in LD_LIBRARY_PATH
variable.
The real problem with shared libraries is that on every platform
you go about a different way of building/linking them. For that
purpose, GNU libtool package may help you.
Thanks,
--
Eray Ozkural (exa) <address@hidden>,
Comp. Sci. Dept., Bilkent University, Ankara
www: http://www.cs.bilkent.edu.tr/~erayo
GPG public key fingerprint: 360C 852F 88B0 A745 F31B EA0F 7C07 AE16 874D 539C