chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] How to structure a project


From: felix winkelmann
Subject: Re: [Chicken-users] How to structure a project
Date: Wed, 10 Jan 2007 11:18:10 +0100

On 1/10/07, Daniel Sadilek <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]