On 12/14/2014 08:44 PM, Bahman Movaqar wrote:
> First of all, sorry for spamming the list :-)
>
> So, I've got two modules:
>
>     ;; misc.scm
>     (module misc
>       ...)
>
>     ;; point.scm
>     (load "misc")
>     (module point
>       (...)
>       (import scheme chicken)
>       (use srfi-1 misc)
>       ...)
>
> And I've setup the project like below:
>
>     (compile -d0 -O2 -J -s touka.scm)
>     (compile -d0 -O2 -s touka.import.scm)
>     (compile -d0 -O2 -s misc.scm)
>     (compile -d0 -O2 -s point.scm)
>
>     (install-extension
>      'touka
>      '("touka.so" "touka.import.so" "misc.so" "point.so")
>      '((version "0.0.1")))
>
> However the test (compile) phase aborts withe the following error:
>
>   'csc' -feature compiling-extension -setup-mode    -d0 -O2 -s point.scm
>   Syntax error (import): cannot import from undefined module
>     misc
>
> I need some help deciphering this message. "misc.scm" successfully gets
> compiled to .so which I load at the beginning of "point".
> What am I doing wrong?

So thanks to Richard and John I finally got things working. I even
pushed my working setup as a tag [1] so that other newcomers don't have
to go through the same puzzle.

[1] https://github.com/bahmanm/touka/tree/0.0.0

-- 
Bahman Movaqar

http://BahmanM.com - https://twitter.com/bahman__m
https://github.com/bahmanm - https://gist.github.com/bahmanm
PGP Key ID: 0x6AB5BD68 (keyserver2.pgp.com)

Attachment: signature.asc
Description: OpenPGP digital signature

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

Reply via email to