| 1.6 Requirements for the C/C++ Connection |
|
|
You must have a C/C++ compiler suitable for compiling Tcl/Tk. The examples have been tested on the shlicc compiler that came with BSDI Unix 2.1 and the Borland 5.0 C++ compiler. There are two methods of combining C code with Tcl/Tk code, the "recompile/relink" method and the load-command method. The latter requires shared libraries. If you know how to compile C/C++ code to shared libraries on your system, you are ready for the load-command method. Before trying the recompile/relink method you should compile Tcl/Tk from the source code distribution. The distribution notes and make files are pretty helpful. If there is a problem, you can go to the Tcl Usenet group, comp.lang.tcl, for help. In any case, I recommend that you do not overwrite any existing version of Tcl/Tk when you compile Tcl/Tk. |
Author's Home Page |
|
Order from Amazon. |