Re: "unbound variable"

2011-06-27 Thread Tomas By
On Mon, June 27, 2011 23:44, Linas Vepstas wrote: > Not sure what the bug is, though ... does get-map work > if you don't use it within the module? Can you verify it works > in some simple way? yes it works fine, except from inside the module.

Re: "unbound variable"

2011-06-27 Thread Linas Vepstas
On 27 June 2011 04:41, Peter Brett wrote: > "Tomas By" writes: > >> I have an extended Guile interpreter with a C function "get-map", >> defined by "scm_c_define_gsubr", that I then try to use in the >> (pure Scheme) module "mapdisplay", with the following result: >> >> [snip] >> >> Any ideas wha

Re: "unbound variable"

2011-06-27 Thread Peter Brett
"Tomas By" writes: > I have an extended Guile interpreter with a C function "get-map", > defined by "scm_c_define_gsubr", that I then try to use in the > (pure Scheme) module "mapdisplay", with the following result: > > [snip] > > Any ideas what is happening here? How can I debug it? Having read

Re: "unbound variable"

2011-06-27 Thread nalaginrut
> Hi again, > > Thanks for the help so far. > > On Mon, June 27, 2011 10:38, nalaginrut wrote: > > I can't give accurate answer because you provided less information. So I > > just give a guess: > > If you have wrapped a module in mapdisplay.scm, you'd have imported some > > symbols out of this m

Re: "unbound variable"

2011-06-27 Thread Tomas By
Hi again, Thanks for the help so far. On Mon, June 27, 2011 10:38, nalaginrut wrote: > I can't give accurate answer because you provided less information. So I > just give a guess: > If you have wrapped a module in mapdisplay.scm, you'd have imported some > symbols out of this module. I know you

Re: "unbound variable"

2011-06-27 Thread nalaginrut
> On Mon, June 27, 2011 05:40, nalaginrut wrote: > > I think you need to import this symbol in your module, in this case, I > > think it's mapdisplay.scm. If get-map's not within a module, you'd need > > to get this symbol with "dynamic-link" and it's friends. > > It's in the top-level module. >

Re: "unbound variable"

2011-06-27 Thread Tomas By
On Mon, June 27, 2011 05:40, nalaginrut wrote: > I think you need to import this symbol in your module, in this case, I > think it's mapdisplay.scm. If get-map's not within a module, you'd need > to get this symbol with "dynamic-link" and it's friends. It's in the top-level module. | guile> (apro