On Tue, Oct 28, 2014 at 02:13:51PM +0000, Richard wrote: > Hello everybody, > > If I link multiple units into a shared object, load the shared object > and call (exit) I get the warning: "Warning: "exit" called while > processing on-exit task". > If I'm doing this in the interpreter, csi will not exit. > > Here is a trivial example: > > $ cat a.scm > (declare (unit a)) > (define zooi 'a) > > $ cat b.scm > (declare (uses a)) > (print zooi) > > $ csc -c a.scm b.scm ; csc -s a.o b.o -o c.so
I think you need to add -unit to that, otherwise it'll compile adding a "main" function into those files. Cheers, Peter -- http://www.more-magic.net _______________________________________________ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users