unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: nalaginrut <nalaginrut@gmail.com>
To: guile-user@gnu.org
Subject: Re: C module problem
Date: Mon, 28 Feb 2011 17:40:12 +0800	[thread overview]
Message-ID: <1298886012.2632.5.camel@Renee-desktop> (raw)

> On Mon, Feb 28, 2011 at 04:54:00PM +0800, nalaginrut wrote:
> > > 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"
> > 
> > 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".
> > =======================================
> 
> Oops, forgot to omit the ".so".  That doesn't seem to be the problem, though.
> 
> scheme@(guile-user)> (load-extension "sdl-guile" "init_module")
> ERROR: In procedure load-extension:
> ERROR: In procedure dynamic-link: file: "sdl-guile", message: "file not found"
> 
> scheme@(guile-user)> (load-extension "./sdl-guile" "init_module")
> ERROR: In procedure load-extension:
> ERROR: In procedure dynamic-link: file: "./sdl-guile", message: "file not found"
> 
> I am running it from the same directory as the file "sdl-guile.so".
> 
> --Aidan

You should read the document continuously. :-)
=================================
     LIB should be a string denoting a shared library without any file
     type suffix such as ".so".  The suffix is provided automatically.
     It should also not contain any directory components.  Libraries
     that implement Guile Extensions should be put into the normal
     locations for shared libraries.
=================================
So I think you must copy the share lib into the lib directory. 



-- 
GNU Powered it
GPL Protected it
GOD Blessed it

HFG - NalaGinrut




             reply	other threads:[~2011-02-28  9:40 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-28  9:40 nalaginrut [this message]
2011-02-28 10:16 ` C module problem rm
  -- strict thread matches above, loose matches on Subject: below --
2011-02-28 14:54 Mike Gran
2011-02-28 15:35 ` gustav
2011-02-28 17:30 ` dsmich
2011-02-28 18:24   ` Aidan Gauland
2011-02-28 20:43     ` Aidan Gauland
2011-02-28  8:13 Aidan Gauland
2011-02-28  8:54 ` nalaginrut
2011-02-28  9:32   ` Aidan Gauland
2011-02-28 21:37 ` Andy Wingo
2011-02-28 23:23   ` Aidan Gauland

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1298886012.2632.5.camel@Renee-desktop \
    --to=nalaginrut@gmail.com \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).