Code Comments
Programming Forum and web based access to our favorite programming groups.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
Post Follow-up to this messageysrise@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
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.