Home > Archive > Tcl > October 2004 > Can I compile a tcl/tk extended C file into an exe file on windows?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Can I compile a tcl/tk extended C file into an exe file on windows?
|
|
|
| I'm new to tcl/tk. I have a simple tk/tcl extended C file like this,
#include <stdio.h>
#include <stdlib.h>
#include <tcl.h>
#include <tk.h>
int Tcl_AppInit(Tcl_Interp* interp)
{
int status;
status = Tcl_Init(interp);
if (status != TCL_OK)
{
return TCL_ERROR;
}
/* Initialize Tk values. */
status = Tk_Init(interp);
if (status != TCL_OK)
{
return TCL_ERROR;
}
return TCL_OK;
}
int main(int argc, char** argv)
{
Tk_Main(argc, argv, Tcl_AppInit);
return 0;
}
Can I compile this file into an exe file on windows? How?
Thank you
| |
| Pat Thoyts 2004-10-27, 8:57 pm |
| ysrise@gmail.com (yan) writes:
[snip[
>Can I compile this file into an exe file on windows? How?
>
>Thank you
cl -nologo -W3 -O2 -MD -I/opt/tcl/include -o thing.exe thing.c
\opt\tcl\lib\tcl84.lib \opt\tcl\lib\tk84.lib
If you don't have a C compiler, Google can help you find some.
Microsoft even let you have theirs for free too. See the wiki.
--
Pat Thoyts http://www.zsplat.freeserve.co.uk/resume.html
To reply, rot13 the return address or read the X-Address header.
PGP fingerprint 2C 6E 98 07 2C 59 C8 97 10 CE 11 E6 04 E0 B9 DD
|
|
|
|
|