On 1/10/07, Daniel Sadilek <[EMAIL PROTECTED]> wrote:
> > ;;; foo.scm
> > (declare (uses bar))
> > (use bar)
>
> You do not need the '(uses bar)'

If I leave it out, "csc bar.o foo.scm" gives the warning "extension
`bar' is currently not installed" and running the compiled foo results
in "Error: unbound variable: bar".

When you compile bar into a dynamically loadable object, you don't
add it to the command line for compiling foo.scm:

% csc -s bar.scm   # produces bar.so
% csc foo.scm       # produces foo, which can load "bar.so" via "(use ...)"


cheers,
felix


_______________________________________________
Chicken-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to