(ok, maybe I should have used "Scheme include path error message" as the subject. Less confusion that way.)
"make install" does not copy header.scm to /usr/local/Gambit-C/lib. This and all other building-specific files are under the ~/dev/gambc40b17 file tree.
I'll admit this attempt was a hackey enough to fail. <G> I find it more natural to search relative to the local file than to the current directory. But the resulting error uses the full correct path of the file and not the path where it was actually searched. Hence this thread.
I am leery to "pollute" the Gambit tool with its source code, or "pollute" the Gambit source code with user code. OTOH, using the Gambit's low-level code directly isn't usual.
At 15:37 -0400 2006/06/15, Marc Feeley wrote:
Alternatively, if you have installed Gambit properly ("make install"), then you could do:
(include "~~/lib/header.scm")
Marc
On 15-Jun-06, at 3:06 PM, Urban Hafner wrote:
On 6/15/06, Stephane Le Cornec coleste@videotron.ca wrote: Last login: Thu Jun 15 14:42:22 on ttyp1 Welcome to Darwin! [modemcable202:~] stephane% cd /Users/stephane/dev/gambc40b17/lib/ [modemcable202:~/dev/gambc40b17/lib] stephane% ls h* header.scm [modemcable202:~/dev/gambc40b17/lib] stephane% cat ~/test.scm (include "header.scm") [modemcable202:~/dev/gambc40b17/lib] stephane% gsc -flat ~/test.scm *** ERROR -- Can't find file "/Users/stephane/dev/gambc40b17/lib/header.scm" [modemcable202:~/dev/gambc40b17/lib] stephane%
Seems like gsc searches in the directory where test.scm is for a header.scm file. If you move test.scm into ~/dev/gambc40b17/lib the compilation works.
Urban
http://bettong.net _______________________________________________ Gambit-list mailing list Gambit-list@iro.umontreal.ca http://mailman.iro.umontreal.ca/mailman/listinfo/gambit-list