chicken-users
[Top][All Lists]
Advanced

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

[Chicken-users] loading libraries: inconsistencies interpreter vs. compi


From: Michele Simionato
Subject: [Chicken-users] loading libraries: inconsistencies interpreter vs. compiler
Date: Sun, 12 Jun 2005 12:13:26 -0400

I have a library in a subdirectory of CHICKEN_INCLUDE_PATH, say in
mystuff/mylib. In the interpreter, from any directory I do

(require-extension mystuff/mylib)

and it works just fine. In the compiler, the library is not found :-(
Here is what I did in detail:

# being in CHICKEN_INCLUDE_PATH
$ cd mystuff
$ echo "(print 'ok)" > example.scm
$ csc -s example.scm
$ cd ../otherdir
$ echo "(use mystuff/example)" > main.scm
$ csc main.scm
$ main # DOES NOT WORK
Error: (require) can not load extension: mystuff/example

##sys#require
$ csi -script main.scm # WORKS IN THE INTERPRETER
ok

I got it working by putting a symlink to mystuff/mylib.so in the
current directory, but there must be a better way!

                Michele Simionato




reply via email to

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