howto link tk & tcl libs into gnuwin32 c executable?

Alan Jurgensen alan@compass.fullcompass.com
Wed Feb 25 19:13:00 GMT 1998


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".


More information about the Cygwin mailing list

AltStyle によって変換されたページ (->オリジナル) /