This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
howto link tk & tcl libs into gnuwin32 c executable?
- To: gnu-win32 mailing list list <gnu-win32 at cygnus dot com>
- Subject: howto link tk & tcl libs into gnuwin32 c executable?
- From: alan at compass dot fullcompass dot com (Alan Jurgensen)
- Date: Wed, 25 Feb 1998 11:59:12 -0600
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@fullcompass.com
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".