From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: nalaginrut Newsgroups: gmane.lisp.guile.user Subject: Re: C module problem Date: Mon, 28 Feb 2011 16:54:00 +0800 Organization: HFG Message-ID: <1298883240.2632.1.camel@Renee-desktop> References: <20110228081326.GA25446@neko> 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 1298884247 32709 80.91.229.12 (28 Feb 2011 09:10:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 28 Feb 2011 09:10:47 +0000 (UTC) Cc: guile-user@gnu.org To: Aidan Gauland Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Feb 28 10:10:43 2011 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ptz7l-0007u1-Kk for guile-user@m.gmane.org; Mon, 28 Feb 2011 10:10:43 +0100 Original-Received: from localhost ([127.0.0.1]:57742 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PtysD-0000ap-SR for guile-user@m.gmane.org; Mon, 28 Feb 2011 03:54:33 -0500 Original-Received: from [140.186.70.92] (port=46959 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ptys8-0000Ym-Os for guile-user@gnu.org; Mon, 28 Feb 2011 03:54:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ptys4-0001sy-LM for guile-user@gnu.org; Mon, 28 Feb 2011 03:54:28 -0500 Original-Received: from mail-gy0-f169.google.com ([209.85.160.169]:35457) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ptys4-0001st-Io for guile-user@gnu.org; Mon, 28 Feb 2011 03:54:24 -0500 Original-Received: by gyb13 with SMTP id 13so1847250gyb.0 for ; Mon, 28 Feb 2011 00:54:23 -0800 (PST) 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=UoaVtd/gUdzMDDvaxKlbgojc3Rop3DRrBwmOdWd9caM=; b=ufkpBlmG9sgw5tvRmZSQXia9DxWZiZRkXqeSPEmzkzrH5eCHvmU40q3EGWEC0bkQwx t25O9FuMaCXG4TjCHhd6Vd3Ns25IDMO/n2UaegjDOu1t8kApYs6p2tSMxTGXG4t6M4SN QTIZHipokfgcCBdymNwhJhbJKpKszLV8hCpzc= 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=AvTINJmoN0F1f5sQbXoKpgRW2rAEbQ4n7LNu06xpLqiscd8lVZFNw1PymoV1JhhAt6 nK696pJ/gMC1ylWOMI8dGS3iXw+1veKE4umdeZ+dKncmH6xg8dLFZ4qHsLbQxRdaoTuq ZLRUazA4Yv/qcC5aDnczONH11EqnYW9XOsgI8= Original-Received: by 10.150.144.15 with SMTP id r15mr6907412ybd.74.1298883263744; Mon, 28 Feb 2011 00:54:23 -0800 (PST) Original-Received: from [192.168.100.100] ([183.15.172.84]) by mx.google.com with ESMTPS id q29sm131072yba.2.2011.02.28.00.54.15 (version=SSLv3 cipher=OTHER); Mon, 28 Feb 2011 00:54:22 -0800 (PST) In-Reply-To: <20110228081326.GA25446@neko> 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.160.169 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:8467 Archived-At: > Hello, > > I am trying to write a simple C module for Guile (for the learning > experience) and I have run into a cryptic error. I have compiled > `sdl-guile.c' to `sdl-guile.so' with the following command. > > gcc -shared -o sdl-guile.so -fPIC sdl-guile.c `guile-config compile` `sdl-config --cflags` > > I then run `guile' and evaluate > (load-extension "./sdl-guile.so" "init_module") and get the following > output. > > ERROR: In procedure load-extension: > ERROR: In procedure dynamic-link: file: "./sdl-guile.so", message: "file not found" > > I can follow the example in section 6.20.3 C Extensions of the manual > with no trouble, so I think I am not properly linking to SDL. > > Can anyone help me with this? > > Regards, > Aidan Gauland hi, you may type ",d load-extension" in the repl environment. And you will find this note: ======================================= LIB should be a string denoting a shared library without any file type suffix such as ".so". ======================================= -- GNU Powered it GPL Protected it GOD Blessed it HFG - NalaGinrut