[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/1.4.2.3i |
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.
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