On Fri, Sep 23, 2011 at 10:43:23PM -0400, blakes...@gmail.com wrote:
> I'm having some trouble compiling modules and one main file into a binary. I'm
> using 4.7.0. I have 3 modules, a, b and c. Module c depends on b and a while b
> depends on a.
> 
> Right now I'm trying:
> 
> $ csc -c -unit module-a module-a.scm
> $ csc -c -uses module-a module-a.o module-b.scm

Units are a really old way of doing "module-like" things.
The reason the module is undefined when you load it is because
you don't have an import library.

Try:

$ csc -s -j module-a module-a.scm
# or csc -J module-a.scm
$ csc -s module-a.import.scm

I don't know about linking it statically.

Cheers,
Peter
-- 
http://sjamaan.ath.cx
--
"The process of preparing programs for a digital computer
 is especially attractive, not only because it can be economically
 and scientifically rewarding, but also because it can be an aesthetic
 experience much like composing poetry or music."
                                                        -- Donald Knuth

_______________________________________________
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to