This is the mail archive of the guile@cygnus.com mailing list for the guile project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Ralf Schmelter writes:
> Hello!
>
> I have encountered a problem while I was writing an extension to Guile.
> The problem is, that I cannot use certainn functions (load for example)
> because the interpreter exits with an error ('guile: Unbound variable:
> load' in this case). This does not happen, if I run guile interactively. I
> start the interpreter in my program with the gh_enter function and most
> of the functions (define, let, etc.) work properly. Another problem is,
> that i can't use functions like cos and sin. I have to use $sin and $cos
> instead.
>
> Can anybody explain this strange behaviour?
Some important functions get known guile when ice-9 is booted, as they are
defined in ice-9/boot-9.scm.
Unfortunately the later guile snaps fail to boot ice-9 when gh_enter is
called, thus not initializing those important primitives.
My dirty workaround is to gh_eval_file "/usr/share/guile/1.3a/ice-9/boot-9.scm"
explicitely after gh_enter, but that's probably not what Blandy would suggest.
Klaus Schilling