chicken-users
[
Top
][
All Lists
]
Advanced
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
[Chicken-users] Problems with compilation units and modules
From
:
megane
Subject
:
[Chicken-users] Problems with compilation units and modules
Date
:
Mon, 21 May 2012 12:24:19 +0300
Hello,
I'm trying to define a module in a separate compilation.
Here's a simple example that I can't get to compile:
File: src/myutil.scm
-----
(module myutil
*
(import chicken scheme)
(define (foo)
(print "myutil foo")))
(define (bar) (print "myutil bar"))
File: src/main.scm
-----
;; This works
(bar)
;; This doesn't
(import myutil)
(foo)
;; csc -unit myutil src/myutil.scm -c
;; csc -uses myutil src/main.scm src/myutil.o
;; Syntax error (import): cannot import from undefined module
;; myutil
;; Expansion history:
;; <syntax> (##core#begin (begin (import myutil) (foo)))
;; <syntax> (begin (import myutil) (foo))
;; <syntax> (##core#begin (import myutil) (foo))
;; <syntax> (import myutil) <--
reply via email to
[Prev in Thread]
Current Thread
[
Next in Thread
]
[Chicken-users] Problems with compilation units and modules
,
megane
<=
Re: [Chicken-users] Problems with compilation units and modules
,
Felix
,
2012/05/21
Prev by Date:
Re: [Chicken-users] [ANN] chicken-belt 0.0.6: Introducing chicken-hatch
Next by Date:
Re: [Chicken-users] [ANN] chicken-belt 0.0.6: Introducing chicken-hatch
Previous by thread:
[Chicken-users] [ANN] chicken-belt 0.0.6: Introducing chicken-hatch
Next by thread:
Re: [Chicken-users] Problems with compilation units and modules
Index(es):
Date
Thread