+2001-06-06 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
+
+ * box-dynamic-module/box-module.scm: New file.
+
2001-06-05 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
* box-dynamic-module: New directory, implements the box type in a
## to the Free Software Foundation, Inc., 59 Temple Place, Suite
## 330, Boston, MA 02111-1307 USA
-EXTRA_DIST = README box.c
+EXTRA_DIST = README box.c box-module.scm
CFLAGS=`guile-config compile`
LIBS=`guile-config link`
this module. See the following example session for usage details:
Extend your LD_LIBRARY_PATH variable (or equivalent) to include . and
-.libs
+.libs and make sure that your current working directory is the one
+this file is contained in.
If you like this example so much that you want to have it available
for normal usage, install the dynamic libraries in the .libs directory
-to the directory $(prefix)/lib
-
-Note that after loading the extension, an explicit call to use-modules
-is needed to make the exported procedures available.
+to the directory $(prefix)/lib and the scheme file `box-module.scm' in
+a directory in your GUILE_LOAD_PATH.
$ guile
-guile> (load-extension "libbox-module" "scm_init_box")
-guile> make-box
-<unnamed port>: In expression make-box:
-<unnamed port>: Unbound variable: make-box
-ABORT: (unbound-variable)
-
-Type "(backtrace)" to get more information or "(debug)" to enter the debugger.
guile> (use-modules (box-module))
guile> (define b (make-box))
guile> b
second argument. It will initialize the shared, library, but will
place the definitions in a module called (box-module), so that an
additional (use-modules (box-module)) is needed to make them
- accessible. */
+ accessible. In this example, the Scheme file box-module.scm is
+ responsible for doing the load-extension call. */
void
scm_init_box ()
{