From: alan AT compass DOT fullcompass DOT com (Alan Jurgensen) Subject: howto link tk & tcl libs into gnuwin32 c executable? 26 Feb 1998 01:49:01 -0800 Message-ID: <34F45BF0.D2CC6E8B.cygnus.gnu-win32@fullcompass.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: gnu-win32 mailing list list 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 > #include > #include > #include > > 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".