Re: Shared library support
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: