Re: [Chicken-users] CHICKEN_INCLUDE_PATH and require

2010-10-07 Thread Felix
From: Mario Domenech Goulart mario.goul...@gmail.com
Subject: [Chicken-users] CHICKEN_INCLUDE_PATH and require
Date: Tue, 05 Oct 2010 09:17:07 -0400

 Hi
 
 I'm confused about the `require' semantics for compiled and
 interpreted code and regarding to CHICKEN_INCLUDE_PATH.  Here's
 an example:
 
[...]
 
 Why doesn't the compiled code work?
 

csi incorrectly also searches extensions in CHICKEN_INCLUDE_PATH. 
I'll change that and update the docs. Thanks for pointing out this
inconsistency.


cheers,
felix


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] CHICKEN_INCLUDE_PATH and require

2010-10-05 Thread Mario Domenech Goulart
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

___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users