Re: [ng-spice] shared libraies


To ng-spice <ng-spice@ieee.ing.uniroma1.it>
From Stephen Tell <tell@cs.unc.edu>
Date Tue, 7 Sep 1999 21:29:49 -0400 (EDT)
Delivered-To mailing list ng-spice@ieee.ing.uniroma1.it
In-Reply-To <Pine.LNX.3.96.990907150523.2174A-100000@ieee.ing.uniroma1.it >
Mailing-List contact ng-spice-help@ieee.ing.uniroma1.it; run by ezmlm
Reply-To ng-spice@ieee.ing.uniroma1.it

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: