how to statically link against tcl84.lib, tk84.lib, tclx84.lib?

how to statically link against tcl84.lib, tk84.lib, tclx84.lib?

Post by clrns » Thu, 10 Mar 2005 06:56:53


I am using VC++ 7.0 and ActiveTcl 8.4.7 (which
is installed under C:\Tcl).

I've added tcl84.lib, tk84.lib, tclx84.lib to my
C++ project (which builds a DLL).

Everything compiles fine.
However, when I use the application that references
the DLL, it issues an error message indicating that
"tclx84.dll cannot be found".

Note: I've added both C:\Tcl\lib and C:\Tcl\lib\tclx8.4
to the search path for libraries.

Presently, I resolve this issue by just copying tclx84.dll
to C:\WINDOWS -- and then things work.
 
 
 

how to statically link against tcl84.lib, tk84.lib, tclx84.lib?

Post by Georgios P » Fri, 11 Mar 2005 04:11:28

You need to re-build tcl/tk from sources, for creating
static libraries. If you open the files "makefile.vc"
in the win directory of both tcl & tk sources, there
is a lot of information on how to build static binaries.
I think that ActiveTcl does not contain static builds of
the libraries...

George