[plt-scheme] Loading compiled extension modules with R6RS (import)

From: Ryan Culpepper (ryanc at ccs.neu.edu)
Date: Wed Feb 3 11:30:18 EST 2010

On Feb 2, 2010, at 10:58 PM, Jonathan Bastien-Filiatrault wrote:

> Hi,
>
> I have made a MzScheme to LLVM wrapper using the C API. I can load  
> and use the module fine using the non-standard (require) form.  
> However, I cannot manage to load my extension in R6RS mode.
>
> I have tried many permutations, based on:
>
> - http://docs.plt-scheme.org/r6rs/libpaths.html and
> - http://docs.plt-scheme.org/inside/overview.html (the parts  
> relating to load-extension)
>
> I am using MzScheme v4.2.3 (3m mode).
>
> <plug type="shameless">
> For those interested, the code is at http://github.com/jothan/mzscheme-llvm
> </plug>
>
> Any tips on how to get this working are greatly appreciated.

Just a thought, but what if you make a Scheme wrapper module:

   #lang scheme/base
   (require <your-extension>)
   (provide (all-from-out <your-extension>))

and then try importing that file as an R6RS library?

Ryan



Posted on the users mailing list.