[plt-scheme] Unbound variable in module error with SWIG
With mzscheme, by using swig I could generate function 'fact' and use
it.
(load-extension "example.dylib")
(display (fact 3))
In order to generate standalone app, I had to use module.
(module testit mzscheme
(load-extension "example.dylib")
(display (fact 3))
)
But I got "compile: unbound variable in module in: fact".
I tried to copy the example.dylib to the "specific" directory by
following the advice at
http://list.cs.brown.edu/pipermail/plt-scheme/2002-August/000372.html
>>>>>>>>>>>>>>>>>
Once you've made that change put x.so in
the directory given by
(build-path dir "compiled" "native"
(system-library-subpath))
<<<<<<<<<<<<<<<<<
But the result of mzsheme is.
--------------------------------------------
> (build-path dir "compiled" "native" (system-library-subpath))
reference to undefined identifier: dir
---------------------------------------------
So, I don't know where to copy the .dylib file.
What might be wrong?
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20061029/a986ba73/attachment.html>