[racket] 'C' module extension, expected `xxx'

From: Norman Gray (norman at astro.gla.ac.uk)
Date: Thu Jan 12 06:20:07 EST 2012

Tim, hello.

I've only just noticed this thread, or I would have jumped in earlier.

On 2012 Jan 12, at 10:12, Tim Brown wrote:

> My original problem was with SWIG (which, by default uses
> scheme_make_symbol()).
> Poking about (and reading documentation):
>    swig -declaremodule -mzscheme ...
> does everything splendidly.

(a) This happened to me, too <http://groups.google.com/group/plt-scheme/browse_thread/thread/e4c09bcc41784f33/b77afd703eb67008?show_docid=b77afd703eb67008>  The SWIG folk seemed happy enough to take a documentation patch, but if the racket part of the docs is still as ... terse as it was, it might be worth offering them an update.

(b) I gave up on SWIG after a short while, and just did the management myself -- it seemed simpler, in the end.  With suitable macro magic, I was able to do all of the C nastiness without pain.  The results are at <http://nxg.me.uk/dist/racket-librdf/> if you're interested.

All the best,


Norman Gray  :  http://nxg.me.uk
SUPA School of Physics and Astronomy, University of Glasgow, UK

Posted on the users mailing list.