Mail Archives: cygwin/1998/02/26/01:49:01.1
hiya,
ive got a nifty tk app that i'm currently executing with "wish42 app.tk"
how can i compile the tcl and tk libs into a standalone windows
executable? from faqs, i see i can do something like:
> #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;
> }
>
> /* Insert your code here... */
>
> return TCL_OK;
> }
>
> /* From tclAppInit.c */
> int
> main(int argc, char** argv)
> {
> Tk_Main(argc, argv, Tcl_AppInit);
> return 0;
> }
does this apply with gnu-win32?? i notice something in share/tk4.2/ called
WinMain.c.... is what I want? Then, how to embedd the tk code into the
binary? i'd rather not have it as a separate file....
a tk newbie:
alan
--
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
Alan W. Jurgensen - Full Compass Systems
fon: (608) 836-8887 1187 - email: alan AT fullcompass DOT com
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".
- Raw text -