[plt-scheme] Inter-extension dependancies

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Sat Oct 23 09:54:43 EDT 2004

At Fri, 22 Oct 2004 09:53:55 -0700, Dmitriy.Zavin at infineon.com wrote:
> I have 2 sets of extensions linked as shared libs (A and B). A uses some
> functions from B.
> 
> So I (load-extension B) first. When I try to (load-extension A),
> mzscheme complains that it cannot find the symbol which was actually
> loaded as part of extension B. What gives? Is there any way to achieve
> the above without compiling them both into 1 monolithic extension?

Under Unix, MzScheme opens extensions using dl_open() with RTD_GLOBAL.
So when you lead extension A, it can't see the exports of extension B.

But if you supply extension B when *linking* extension A, then I think
it will work the way you want.

Matthew



Posted on the users mailing list.