next up previous contents index
Next: Setting module attributes Up: Modules Previous: Introduction to modules   Contents   Index


Loading shared object files

The first thing to do, when you want to add some function to a module, is to open its file. All the work is done internally by the library, and you just need to call:

int gocr_moduleLoad ( char *filename );
If filename is just the filename, libgocr will search for the file in the following directories:

This function returns a module id (that can be used to set attributes, see below) if the operation was successful, -1 otherwise.



root 2002-02-17