Re: [ng-spice] shared libraies
On Tue, 7 Sep 1999, Paolo Nenzi wrote:
> The first step will be to use libtool to compile the bsim3 code in the
> lib/dev/bsim3 as ld.so code (may be let the user choose static or shared
> library), without interfering with other parts of ng-spice. dlopen will be
> added in a second (or third) phase, because it does need severe change in
> the interface functions. This item should be discussed with other people
> on this list.
Note that when you get to that point, you really don't want to use dlopen
directly, but rather use the thin libltdl wrapper provided with libtool -
some unixes don't have dlopen, but instead have something equivalent.
libldtl.a hides these variations.
There are examples in the libtool distribution - in libtool-1.3b, look in
the mdemo directory.
Steve
--
Steve Tell | tell@cs.unc.edu | http://www.cs.unc.edu/~tell | KF4ZPF
Research Associate, Microelectronic Systems Laboratory
Computer Science Department, UNC@Chapel Hill. W:919-962-1845
Partial thread listing: