Help on compiling a C program which uses TK library

Mumit Khan khan@xraylith.wisc.edu
Wed Nov 12 09:24:00 GMT 1997


Arlindo da Silva <arlindo@niteroi.gsfc.nasa.gov> writes:
> 
> 
> The X11 libraries do NOT come with cdk.exe; you need to download it
> from:
> 
>    ftp://niteroi.gsfc.nasa.gov/pub/win32/X11R6.3
> 
> You will need an X server as well to run X programs.  Please see the README
> file.
> 

Actually, you don't need Xlib for Tk. Tk emulates a subset of X
functionality under Windows to get things going. The poster missed
the X11 headers in the Tk distribution (and the xlib emulation is 
already in Tk DLL, either as provided by Sun or built locally by
MSVC or BC).

Of course, this means that the portable Tk extensions don't use
X11 stuff that is not in the emulation (eg., allocating read-write
color cells, which lots of programs assume are available, or 
XWindowGetAttributes, or XClearWindow, or ...). Look in the stubs.c
in the tk8.0/win directory to see which calls Tk doesn't have
emulation for or can be emulated by equivalent Tk calls.

Regards,
Mumit -- khan@xraylith.wisc.edu
http://www.xraylith.wisc.edu/~khan/
-
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