[plt-scheme] load-extension and modules
Looks like SWIG 1.3.15 isn't generating the wrapper code correctly; I
needed to patch it to call scheme_primitive_module and now it works just
fine. Does anyone know who is maintaining the mzscheme module in SWIG?
Bruce Butterfield wrote:
> For list-related administrative tasks:
> http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>
> I've been working on a functional SQL for mzscheme using an extension
> for postgres built with SWIG. The extention works fine at top level but
> when I stick it into a module mzscheme bitches about unbound variables:
>
> (module dbconnect mzscheme
>
> (load-extension "postgres.so")
>
> (define *conn* #f)
>
> (define (connect connect-str)
> (set! *conn* (PQconnectdb connect-str)))
>
> ...)
>
> expand: umbound variable in module in: pqconnectdb
>
>
> Outside of a module declaration everything's peachy. What am I missing
> here? (mzscheme 202, linux)
>