From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.org!not-for-mail
From: nalaginrut <nalaginrut@gmail.com>
Newsgroups: gmane.lisp.guile.user
Subject: Re: "unbound variable"
Date: Mon, 27 Jun 2011 16:38:49 +0800
Organization: HFG
Message-ID: <1309163929.3070.60.camel@Renee-desktop>
References: <f9c627265c232612a94cb5ba324cc2d0.squirrel@webmail.xs4all.nl>
	<1309146004.3070.39.camel@Renee-desktop>
	<2040270fe1f27a7e828f81fc039cb7e0.squirrel@webmail.xs4all.nl>
Reply-To: NalaGinrut@gmail.com
NNTP-Posting-Host: lo.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Trace: dough.gmane.org 1309164205 26037 80.91.229.12 (27 Jun 2011 08:43:25 GMT)
X-Complaints-To: usenet@dough.gmane.org
NNTP-Posting-Date: Mon, 27 Jun 2011 08:43:25 +0000 (UTC)
Cc: guile-user@gnu.org
To: Tomas By <tomas@basun.net>
Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Jun 27 10:43:18 2011
Return-path: <guile-user-bounces+guile-user=m.gmane.org@gnu.org>
Envelope-to: guile-user@m.gmane.org
Original-Received: from lists.gnu.org ([140.186.70.17])
	by lo.gmane.org with esmtp (Exim 4.69)
	(envelope-from <guile-user-bounces+guile-user=m.gmane.org@gnu.org>)
	id 1Qb7PZ-0000Ca-Pt
	for guile-user@m.gmane.org; Mon, 27 Jun 2011 10:43:17 +0200
Original-Received: from localhost ([::1]:59275 helo=lists.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <guile-user-bounces+guile-user=m.gmane.org@gnu.org>)
	id 1Qb7PY-0004N4-NF
	for guile-user@m.gmane.org; Mon, 27 Jun 2011 04:43:16 -0400
Original-Received: from eggs.gnu.org ([140.186.70.92]:49643)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <nalaginrut@gmail.com>) id 1Qb7LU-0003TT-4S
	for guile-user@gnu.org; Mon, 27 Jun 2011 04:39:05 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <nalaginrut@gmail.com>) id 1Qb7LS-0004ED-9Z
	for guile-user@gnu.org; Mon, 27 Jun 2011 04:39:03 -0400
Original-Received: from mail-iy0-f169.google.com ([209.85.210.169]:42773)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <nalaginrut@gmail.com>) id 1Qb7LR-0004E5-Up
	for guile-user@gnu.org; Mon, 27 Jun 2011 04:39:02 -0400
Original-Received: by iyl8 with SMTP id 8so5281933iyl.0
	for <guile-user@gnu.org>; Mon, 27 Jun 2011 01:39:00 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:subject:from:reply-to:to:cc:in-reply-to
	:references:content-type:organization:date:message-id:mime-version
	:x-mailer:content-transfer-encoding;
	bh=fyxes9gxjRTaJrQkXAgUGP6Brsk7YHmbWUPx9Zb8wWc=;
	b=eixTCM5fWiVuXMLG7lttl5zGRTZXjHBNJagDv6xy/qn2GdI1sWQ9eWiRrAkBzb9arD
	SMTSxKeEUV27xJBB6bgzG03sx6WvSBMCiQmxx2gJLIMVgVNUrPfJwMcw3GhxpYGd1hL5
	+Ib0/GrSGOxa6i+3gkgte7GyxDklZoS4rGVRs=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=subject:from:reply-to:to:cc:in-reply-to:references:content-type
	:organization:date:message-id:mime-version:x-mailer
	:content-transfer-encoding;
	b=BusX8mgHqUNTSmO/AJlsVqBsMmQcPtig4n/gy6Pgwnvyr4KtCfzU/3x9b9WawPk/hl
	JYu3ZtHXhCYmiQZ7NY/WPxOxmld/rVVOLf1rEkSDb9V0B9znQc8bMSjn6ETQ5ypHA3kN
	eRdWIPnobdky1F+pECG3sKPuK5hfcca3o5ywY=
Original-Received: by 10.42.122.9 with SMTP id l9mr6720417icr.68.1309163939543;
	Mon, 27 Jun 2011 01:38:59 -0700 (PDT)
Original-Received: from [192.168.100.100] ([183.15.159.61])
	by mx.google.com with ESMTPS id a9sm5214273icy.6.2011.06.27.01.38.55
	(version=SSLv3 cipher=OTHER); Mon, 27 Jun 2011 01:38:59 -0700 (PDT)
In-Reply-To: <2040270fe1f27a7e828f81fc039cb7e0.squirrel@webmail.xs4all.nl>
X-Mailer: Evolution 2.28.3
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 209.85.210.169
X-BeenThere: guile-user@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: General Guile related discussions <guile-user.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/guile-user>,
	<mailto:guile-user-request@gnu.org?subject=unsubscribe>
List-Archive: </archive/html/guile-user>
List-Post: <mailto:guile-user@gnu.org>
List-Help: <mailto:guile-user-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guile-user>,
	<mailto:guile-user-request@gnu.org?subject=subscribe>
Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org
Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org
Xref: news.gmane.org gmane.lisp.guile.user:8663
Archived-At: <http://permalink.gmane.org/gmane.lisp.guile.user/8663>

> 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

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 can see get-map in REPL's
"current-module", but mapdisplay can't see it in it's own
"current-module". They are different.
If you write this get-map within a module, you may use "#:use-module" in
mapdisplay.scm. If not, you need to import it from your .so file with
FFI such as "dynamic-link". You may checkout it out in the manual.

    

-- 
GNU Powered it
GPL Protected it
GOD Blessed it

HFG - NalaGinrut

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