Re: Shared library support


To ng-spice <ng-spice-devel@ieee.ing.uniroma1.it>
From Manu Rouat <emmanuel.rouat@wanadoo.fr>
Date Tue, 07 Dec 1999 19:12:44 -0500
Delivered-To mailing list ng-spice-devel@ieee.ing.uniroma1.it
Mailing-List contact ng-spice-devel-help@ieee.ing.uniroma1.it; run by ezmlm
Organization la Guilde
References <19991203222742.A5038@cgmd95104.chello.nl> <384C90CB.786B3975@wanadoo.fr> <19991207093205.A25531@cgmd95104.chello.nl >
Reply-To ng-spice-devel@ieee.ing.uniroma1.it
Sender rouat@war.wanadoo.com

Arno wrote:

> 
> I made all libraries dynamic.  From your diagnosis, I think I know the
> solution: declare the additional shared libraries on compile-time so
> that the symbols get resolved before we try to link the resulting
> model library with ng-spice.  I'll try to make that work this evening.
> Once the shared libraries work, we can look at producing a registering
> function to load models on demand.

There is another very annoying problem: there is a circular dependency
in the devices libraries - I solved this prblem by using the line:

libdev_a_LIBADD=  */*.o

in src/devices/Makefile.am 

When building the ngspice binarie, I didn't link to all the devices libraries
(like libbsim3.a for instance) but rather to the single libdev.a - this was 
to work
around this circular dependency problem . You have to take that into account 
otherwise you'll always get unresolved dependencies at link time.


manu


Partial thread listing: