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 17:18:53 +0800
Organization: HFG
Message-ID: <1309166333.3070.80.camel@Renee-desktop>
References: <f9c627265c232612a94cb5ba324cc2d0.squirrel@webmail.xs4all.nl>
	<1309146004.3070.39.camel@Renee-desktop>
	<2040270fe1f27a7e828f81fc039cb7e0.squirrel@webmail.xs4all.nl>
	<1309163929.3070.60.camel@Renee-desktop>
	<11ad4ae2bf30b0902bad2e5e002fdf16.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 1309166888 9475 80.91.229.12 (27 Jun 2011 09:28:08 GMT)
X-Complaints-To: usenet@dough.gmane.org
NNTP-Posting-Date: Mon, 27 Jun 2011 09:28:08 +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 11:28:04 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 1Qb86t-0002da-UW
	for guile-user@m.gmane.org; Mon, 27 Jun 2011 11:28:04 +0200
Original-Received: from localhost ([::1]:50592 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 1Qb86t-0005No-2Q
	for guile-user@m.gmane.org; Mon, 27 Jun 2011 05:28:03 -0400
Original-Received: from eggs.gnu.org ([140.186.70.92]:40541)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <nalaginrut@gmail.com>) id 1Qb7yL-0003XJ-04
	for guile-user@gnu.org; Mon, 27 Jun 2011 05:19:14 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <nalaginrut@gmail.com>) id 1Qb7yF-0002NK-6w
	for guile-user@gnu.org; Mon, 27 Jun 2011 05:19:12 -0400
Original-Received: from mail-iy0-f169.google.com ([209.85.210.169]:64241)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <nalaginrut@gmail.com>) id 1Qb7yE-0002MN-8x
	for guile-user@gnu.org; Mon, 27 Jun 2011 05:19:06 -0400
Original-Received: by iyl8 with SMTP id 8so5312789iyl.0
	for <guile-user@gnu.org>; Mon, 27 Jun 2011 02:19:05 -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=bXzzVNtrRbmXKPYYVOTqpVru8a8HGa4KoFp1AFHneM8=;
	b=hwYKD/KJD1YpWKQ9UE4MQOj5p7HxNo5u7SnmqjoiDzx8UruC0CPgOKm19OitO84/Rv
	TE3oqsF3CfI6XqchGNACPGnRNGHLIJXlNpMChLfIwtYRGJOo5lBaqwbq4PHgMEZJ2tdE
	DyKPKg+rMym8iwE/iowwZeLb1jh5ODBHunmaY=
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=sxtUyOeS6O2lFlTrtp+aZqdN3J9KvlD6gNF/F3pLzcLPJMByBlG2xT4dYE3srTElCp
	YcTMg7sHwsynwrRD6HVo0sp8Xh7llKo7VMednNgnKQwsESj88vbWCJ1Sb4SQg89JCZoi
	l4DyP0SrzU2EdTOGB9amkLt+Q3eaXI1kQF9fE=
Original-Received: by 10.231.179.208 with SMTP id br16mr5913177ibb.87.1309166344907;
	Mon, 27 Jun 2011 02:19:04 -0700 (PDT)
Original-Received: from [192.168.100.100] ([183.15.159.61])
	by mx.google.com with ESMTPS id p15sm2972517ibh.46.2011.06.27.02.18.57
	(version=SSLv3 cipher=OTHER); Mon, 27 Jun 2011 02:19:04 -0700 (PDT)
In-Reply-To: <11ad4ae2bf30b0902bad2e5e002fdf16.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:8665
Archived-At: <http://permalink.gmane.org/gmane.lisp.guile.user/8665>

> 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 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.
> 
> Well, as I tried to explain, "get-map" is statically linked into the
> executable, defined with "scm_c_define_gsubr" which is called from the
> "inner_main" that is passed to "scm_boot_guile".
> 
> I don't think I should have to also dynamically link it.
> 
> Do I need to do another "define_gsubr" (or whatever) from inside mapdisplay?
> 
> /Tomas
> 


Well, I see your situation. And I must say that I don't blend the
extension with executive entry file. So I'm not sure whether a symbol
imported in inner_main directly would be available in every module. 

  


-- 
GNU Powered it
GPL Protected it
GOD Blessed it

HFG - NalaGinrut

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