On 5/23/06, Frédéric Peschanski <[EMAIL PROTECTED]> wrote:

==> mylib.scm
(declare (unit mylib))
(declare (export (foo bar)))


That should be `(declare (export foo bar))' (typo?)

==> myexample.scm
(load-library 'mylib "mylib.so")
(bar)

Probably there are missing links between the library files.
I put the minimum of information because I would like to
maintain some "inter-scheme" compatibility if possible.
That's why I reserve a dedicated file for implementation-related
infos (mylib.scm)

Finally, I don't really understand which commands I should
use for compilation :
- of the individual .scm ==> .o

csc -c ...

- of the library .o ==> .so

csc X.o Y.o -s -o libXY.so

- of the executable myexample.scm (+link with mylib.so) ==> myexample

csc myexample.scm -lXY


Thank you if you can help me (or are these dumb questions ?),

Not at all dumb - the documentation is a bit weak on that.


cheers,
felix


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

Reply via email to