delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/02/26/01:49:01.1

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
To: gnu-win32 mailing list list <gnu-win32 AT cygnus DOT com>

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019