item2
Next»

contents

 

Introduction - 1

History - 2

Overview - 3

Advanced features - 4

Work in progress - 5

One possibility - 6

Conclusion - 7

 

References

Appendix 1 - blowfish

Appendix 2 - tkspline

3.2 - Building Libraries

Critcl can also be used to generate a dynamically loadable shared library, so the code can be run on machines without a C compiler present.

If we wanted to build a small shared library containing just the above math functions, we could create a file mymath.tcl containing the Critcl declarations, and then build it using:

   $ critcl -lib mymath.tcl
   Source: mymath.tcl
   Library: mymath.dylib

We are left with a mymath shared library (in this case a MacOS X .dylib, but on Windows a .dll and on most other Unices a .so) which we can invoke using:

   $ tclkit
   % load mymath.[info sharedlibextension]
   % add 1 2
   3
   % cube 2
   8

see also

Critcl Home Page

Tclkit Home Page

Starkit Home Page

Wikit Home Page

Tclers' Wiki

Steve's Website

Jean-Claude's Website

Paper by S. Landers & J.C. Wippler, as presented at Tcl/Tk 2002 conference - see also original PDF.

Papers & Presentations