guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C module problem


From: nalaginrut
Subject: Re: C module problem
Date: Mon, 28 Feb 2011 16:54:00 +0800

> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]