guile-user
[Top][All Lists]
Advanced

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

Re: "unbound variable"


From: nalaginrut
Subject: Re: "unbound variable"
Date: Mon, 27 Jun 2011 11:40:04 +0800

> 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
> 
> 
> 

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.


-- 
GNU Powered it
GPL Protected it
GOD Blessed it

HFG - NalaGinrut

--hacker key--
v4sw7CUSMhw6ln6pr8OSFck4ma9u8MLSOFw3WDXGm7g/l8Li6e7t4TNGSb8AGORTDLMen6g6RASZOGCHPa28s1MIr4p-x
 hackerkey.com
---end key---




reply via email to

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