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


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

Reply via email to