public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Help on compiling a C program which uses TK library
@ 1997-11-11 20:50 Y. Ahmet Sekercioglu
  1997-11-12  5:48 ` Arlindo da Silva
  0 siblings, 1 reply; 3+ messages in thread
From: Y. Ahmet Sekercioglu @ 1997-11-11 20:50 UTC (permalink / raw)
  To: gnu-win32

	Dear All,

	When I attempt to compile a C program using tk function
calls, I get this problem:

	In tk.h there is 
	
	#include <X11/Xlib.h>

	and preprocessor can't find this include file. I searched the
cygnus directories, this file does not exist in the distribution. What
would be wrong?

	Any help would be much appreciated... 
	

===Y. Ahmet Sekercioglu (ASekerci@swin.edu.au)=====IP phone:============
   School of Information Technology                yas.csse.swin.edu.au
   Swinburne University of Technology              tel: +61-3-92148942
===PO Box 218, Hawthorn, 3122 Vic. Australia=======fax: +61-3-98190823==

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Help on compiling a C program which uses TK library
  1997-11-11 20:50 Help on compiling a C program which uses TK library Y. Ahmet Sekercioglu
@ 1997-11-12  5:48 ` Arlindo da Silva
  1997-11-12  9:24   ` Mumit Khan
  0 siblings, 1 reply; 3+ messages in thread
From: Arlindo da Silva @ 1997-11-12  5:48 UTC (permalink / raw)
  To: Y. Ahmet Sekercioglu; +Cc: gnu-win32

> 
> 	When I attempt to compile a C program using tk function
> calls, I get this problem:
> 
> 	In tk.h there is 
> 	
> 	#include <X11/Xlib.h>
> 
> 	and preprocessor can't find this include file. I searched the
> cygnus directories, this file does not exist in the distribution. What
> would be wrong?
> 


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.

-- 
Arlindo da Silva    
dasilva@alum.mit.edu


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Help on compiling a C program which uses TK library
  1997-11-12  5:48 ` Arlindo da Silva
@ 1997-11-12  9:24   ` Mumit Khan
  0 siblings, 0 replies; 3+ messages in thread
From: Mumit Khan @ 1997-11-12  9:24 UTC (permalink / raw)
  To: Arlindo da Silva; +Cc: gnu-win32

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1997-11-12  9:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-11-11 20:50 Help on compiling a C program which uses TK library Y. Ahmet Sekercioglu
1997-11-12  5:48 ` Arlindo da Silva
1997-11-12  9:24   ` Mumit Khan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).