chicken-users
[Top][All Lists]
Advanced

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

[Chicken-users] CHICKEN_INCLUDE_PATH and require


From: Mario Domenech Goulart
Subject: [Chicken-users] CHICKEN_INCLUDE_PATH and require
Date: Tue, 05 Oct 2010 09:17:07 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux)

Hi

I'm confused about the `require' semantics for compiled and
interpreted code and regarding to CHICKEN_INCLUDE_PATH.  Here's
an example:

$ pwd
/home/mario/tmp/load


$ ls -l
total 4
-rw-r--r-- 1 mario mario  11 Out  5 09:38 a.scm
drwxr-xr-x 2 mario mario 120 Out  5 09:48 subdir


$ cat a.scm 
(print 'a)


$ cd subdir/


$ ls -l
total 4
-rw-r--r-- 1 mario mario 13 Out  5 09:40 b.scm


$ cat b.scm 
(require 'a)


$ CHICKEN_INCLUDE_PATH=/home/mario/tmp/load csi -s b.scm 
a


$ csc b.scm


$ CHICKEN_INCLUDE_PATH=/home/mario/tmp/load ./b
Error: (require) cannot load extension: a

        Call history:

        b.scm:1: require                <--



Why doesn't the compiled code work?

Best wishes.
Mario
-- 
http://parenteses.org/mario



reply via email to

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