Version 4 of load

Updated 2005-08-30 10:44:39

http://www.purl.org/tcl/home/man/tcl8.4/TclCmd/load.htm


  • What does one need to create an extension to be loaded?
  • What does one need to load Tk?

Clif Flynt has made available a useful C extension to load shared libraries that don't know anything about tcl's _Init function.

The extension allows one to invoke dlopen to load libraries that do not have Tcl entry points (for use by other things that do have legitimate foo_Init entry points).

The dlopen extension is available at:

http://noucorp.com/cgi-bin/noucorp/generic.tcl?dir=/home/httpd/html/tcl/utilities

It's a minimal, single C file extension, but it has been known to work on both Windows and Posix (just retested on Linux)


So what do you do when load, or, even more mysteriously, package, fails? There are many, many ways for this to happen, and typical built-in diagnostics from supplied loaders are inscrutable.

One handy tool for such situations is a dependency utility. Under Windows, DependencyWalker [L1 ] walks dependencies.


Tcl syntax help - Arts and crafts of Tcl-Tk programming - Category Command