myprog\
bin\
myprog.exe
tcl84.dll
tk84.dll
lib\
tcl8.4\
init.tcl
... (other scripts)
tk8.4\
msgs\
(message catalogues)
... (scripts for the widgets)
Then set the PATH environment variable to include the directory
...\myprog\bin and, on Linux or UNIX, set the LD_LIBRARY_PATH
environment variable to include that same directory.
Though you need to keep these files on the same computer as your program, there is no need to install Tcl/Tk on it: these files are enough.
Note: The Tcl libraries and script files do not need to be in the same directory as the program itself. The DLLs or shared libraries must be found in the path and the script files must be in a sibling directory of the directory holding the DLLs or shared libraries.
C and Fortran both "mangle" the names of the routines. On some platforms the actual calling conventions differ too and other complications arise as well: these are all problems a programmer has to face when combining two different languages, but they can be relatively easy dealt with automatically.
This is up to a point: the C compiler has no knowledge of what Fortran compiler is used, and therefore some help must be provided - in the form of a C preprocessor macro.
Currently, Ftcl supports the following platforms:
ad 2.
The GNU C compiler is not automatically recognised:
ad 3,4,5.
On the Windows platform the MicroSoft Visual C/C++ compiler is often
used, but for the Fortran compiler several options are possible with
that C compiler. The C compiler in this case determines the name
mangling and the calling convention. So, one macro, "WIN32", covers all
possibilities.
Notes: