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 11:40:04 +0800
Organization: HFG
Message-ID: <1309146004.3070.39.camel@Renee-desktop>
References: <f9c627265c232612a94cb5ba324cc2d0.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 1309146084 5137 80.91.229.12 (27 Jun 2011 03:41:24 GMT)
X-Complaints-To: usenet@dough.gmane.org
NNTP-Posting-Date: Mon, 27 Jun 2011 03:41:24 +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 05:41:11 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 1Qb2hD-0003IM-MT
	for guile-user@m.gmane.org; Mon, 27 Jun 2011 05:41:11 +0200
Original-Received: from localhost ([::1]:45748 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 1Qb2hC-0007xc-Dz
	for guile-user@m.gmane.org; Sun, 26 Jun 2011 23:41:10 -0400
Original-Received: from eggs.gnu.org ([140.186.70.92]:49400)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <nalaginrut@gmail.com>) id 1Qb2gM-0007xP-An
	for guile-user@gnu.org; Sun, 26 Jun 2011 23:40:19 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <nalaginrut@gmail.com>) id 1Qb2gL-0006WZ-4m
	for guile-user@gnu.org; Sun, 26 Jun 2011 23:40:18 -0400
Original-Received: from mail-iw0-f169.google.com ([209.85.214.169]:59648)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <nalaginrut@gmail.com>) id 1Qb2gK-0006WU-Ut
	for guile-user@gnu.org; Sun, 26 Jun 2011 23:40:17 -0400
Original-Received: by iwn8 with SMTP id 8so5062418iwn.0
	for <guile-user@gnu.org>; Sun, 26 Jun 2011 20:40:15 -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=l7QrVAKNAGCHZfDG/wE195Jz4fH7G3hYWFvN+Hp2kSw=;
	b=ZRpcw24puhrhfHLY8d1bqQEQJztTTkMKMsdXaT6C2xX867xT4I89tmtn/WGMBpM5Y3
	1oJDS7LyLTq/DNY6LsyTl54xe/aMW96L7WY192JY5jz1HjX0Zb7cUQXgirOl3YVUIavI
	KbAEmepNrsh55vg3Xt0NYjrxu12ycgK+p2Yi0=
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=c1IYgBbgp62PYGIgdwGXgcF5EvkAMAbVlm5jipM3DVq2UKItOCsRlDopsgRSnAEqgd
	xsxv2mJG1DYOAZPQEbp5wxVdYRSKQbN6CccCLgWtAUEfoJzFjjXnLoP5/4UB8CKkrR5q
	bKs/gvw+KFy9+9s76Slz20lPwtHQ1iaq+vF0s=
Original-Received: by 10.42.19.7 with SMTP id z7mr1089819ica.39.1309146015864;
	Sun, 26 Jun 2011 20:40:15 -0700 (PDT)
Original-Received: from [192.168.100.100] ([183.15.159.61])
	by mx.google.com with ESMTPS id s2sm4993012icw.17.2011.06.26.20.40.08
	(version=SSLv3 cipher=OTHER); Sun, 26 Jun 2011 20:40:15 -0700 (PDT)
In-Reply-To: <f9c627265c232612a94cb5ba324cc2d0.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.214.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:8661
Archived-At: <http://permalink.gmane.org/gmane.lisp.guile.user/8661>

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