diff --git a/SWIG/Examples/GIFPlot/Chicken/full/README b/SWIG/Examples/GIFPlot/Chicken/full/README index a27e75b7b..9eed92a99 100644 --- a/SWIG/Examples/GIFPlot/Chicken/full/README +++ b/SWIG/Examples/GIFPlot/Chicken/full/README @@ -2,3 +2,18 @@ This example runs the entire gifplot.h header file through SWIG without any changes. The Scheme program 'test-gifplot.scm' does something a little more interesting. You'll have to go look at the header file to get a complete listing of the functions. + +`make' will build a version of the CHICKEN interpreter which defines +an additional unit (gifplot). Run `./simple test-gifplot.scm' to test +it. + +** If you have a platform that supports dynamic linking (most UNIXes +** and Win32), then you can run "make module". This will create a +** dynamic module called module.dll/module.so/module.shl (depending on +** your platform), which you can use with the following: + + (load-library 'precsi "module.dll") + +or + + (load-library 'gifplot "module.dll") diff --git a/SWIG/Examples/GIFPlot/Chicken/simple/README b/SWIG/Examples/GIFPlot/Chicken/simple/README index f2eca51f1..035a71c9a 100644 --- a/SWIG/Examples/GIFPlot/Chicken/simple/README +++ b/SWIG/Examples/GIFPlot/Chicken/simple/README @@ -2,5 +2,17 @@ This is a very minimalistic example in which just a few functions and constants from library are wrapped and used to draw some simple shapes. -`make' will build a version of CHICKEN which defines an additional -unit (simple). Run `./simple runme.scm' to test it. +`make' will build a version of the CHICKEN interpreter which defines +an additional unit (simple). Run `./simple test-simple.scm' to test +it. + +** If you have a platform that supports dynamic linking (most UNIXes +** and Win32), then you can run "make module". This will create a +** dynamic module called module.dll/module.so/module.shl (depending on +** your platform), which you can use with the following: + + (load-library 'precsi "module.dll") + +or + + (load-library 'simple "module.dll") diff --git a/SWIG/Examples/chicken/README b/SWIG/Examples/chicken/README index 6944470ee..469fe1004 100644 --- a/SWIG/Examples/chicken/README +++ b/SWIG/Examples/chicken/README @@ -9,8 +9,17 @@ zlib -- a wrapping of the zlib compression library Note that the examples in this directory build a special version of the CHICKEN interpreter (statically linked) which includes the wrapped -functions in the top-level module. - -If you want to put the wrapped functions into your own module, -statically or dynamically linked, see the Examples/GIFPlot/Chicken +functions in the top-level module. Just run "make" in any example directory. + +** If you have a platform that supports dynamic linking (most UNIXes +** and Win32), then you can run "make module" in any example +** directory. This will create a dynamic module called +** module.dll/module.so/module.shl (depending on your platform), which +** you can use with the following: + + (load-library 'precsi "module.dll") + +or + + (load-library 'example "module.dll")