Next: Using Shared Libraries
Up: Dynamic Linking
Previous: Dynamic Linking
On machines where dynamic loading works
and uses .o files,
i.e. those where
get_flag(object_suffix, ".o")
is true, do the following steps:
- Load the library
:- lib('tk/tkext').
- Call tk_load/1
.
Its argument must be a string which contains all files and libraries
which are necessary to link the extension.
You may have to provide absolute pathnames to some of the files
if ECLiPSe is started in another directory than the
installation directory of the extension.
For
Tree
we will call something like
tk_load("/home/micha/tcl/tree-4.0.1/src/libTkTree.a "
"/home/micha/tcl/tree-4.0.1/tkAppInit.o -lg++")
When we now start Tk, it will automatically invoke
the initialisation function and initialise all loaded systems.
Micha Meier
Tue Jul 2 09:49:39 MET DST 1996