On Mon, 18 May 2009 10:26:57 +0900, John Fremlin said:
Martin Simmons martin@lispworks.com writes: [...]
Ah, I see.
Another way around this problem is to make a dummy library (using ld) that references the others and load the dummy library first.
I don't like the idea of setting :dlopen-flags to :global-lazy because it breaks situations where the same symbol is defined in more than one library.
That's all very well, but as other Lisps (SBCL, Allegro, etc.) with CFFI load-foreign-library use global binding, why should Lispworks be the exception?
It is up to CFFI maintainers what they decide, but we have found local to be more useful than global.
I can't comment on other implmentations...