[Top][All Lists]

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

Re: [Chicken-users] Compiling modules

From: Peter Bex
Subject: Re: [Chicken-users] Compiling modules
Date: Sat, 24 Sep 2011 11:16:48 +0200
User-agent: Mutt/

On Fri, Sep 23, 2011 at 10:43:23PM -0400, address@hidden 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.


$ 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.

"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

reply via email to

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