guile-user
[Top][All Lists]
Advanced

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

Re: "unbound variable"


From: Tomas By
Subject: Re: "unbound variable"
Date: Mon, 27 Jun 2011 10:12:25 +0200
User-agent: SquirrelMail/1.4.18

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> (apropos "get-map")
| (guile-user): get-map #<primitive-procedure get-map>

My extensions are statically linked into a Scheme shell executable.

Do I need to extra-import top-level functions into my Scheme module?
How do I do that?

/Tomas



>> Hi all,
>>
>> 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:
>>
>> | mapdisplay.scm:36:12: In expression (get-map wg name):
>> | mapdisplay.scm:36:12: Unbound variable: get-map
>> | ABORT: (unbound-variable)
>> | guile> get-map
>> | #<primitive-procedure get-map>
>> | guile>
>>
>> Any ideas what is happening here? How can I debug it?
>>
>> /Tomas





reply via email to

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