[Top][All Lists]

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

C module problem

From: Aidan Gauland
Subject: C module problem
Date: Mon, 28 Feb 2011 21:13:27 +1300
User-agent: Mutt/1.5.20 (2009-06-14)


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 `' with the following command.

gcc -shared -o -fPIC sdl-guile.c `guile-config compile` 
`sdl-config --cflags`

I then run `guile' and evaluate
(load-extension "./" "init_module") and get the following

ERROR: In procedure load-extension:
ERROR: In procedure dynamic-link: file: "./", message: "file not 

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?

Aidan Gauland

Attachment: sdl-guile.c
Description: Text Data

Attachment: signature.asc
Description: Digital signature

reply via email to

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