This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: ruby-1.6.4 on cygwin


On Wed, Jun 06, 2001 at 11:07:18PM +0900, Madoka Machitani wrote:
> Hi,
> 
> * Agostino Deligia <adeligia@alis.com> [010606 22:25]:
> > I had to place the following X header files (from the Cygwin XFree86 project)
> > in /usr/include/X11 before configuring with --enable-shared so that tcltklib
> > would ger built and installed. Other than that, ruby 1.6.4 built
> > out-of-the-box.
> > 
> >    X.h
> >    Xfuncproto.h
> >    Xlib.h
> >    Xosdefs.h
> 
> Sounds strange.  I don't have any X-related thing on my hard disk.  I
> once tried Cygwin XFree you mentioned but now it's completely removed.
> 
> Sorry I can't make out why you had to have those headers.  Suggestions
> anyone?
> [...]

The ruby Tcl/Tk extension includes <tk.h> which itself contains the following
code snippet:

#ifndef _TCL
#   include <tcl.h>
#endif
#ifndef _XLIB_H
#   ifdef MAC_TCL
#       include <Xlib.h>
#       include <X.h>
#   else
#       include <X11/Xlib.h>
#   endif
#endif
#ifdef __STDC__
#   include <stddef.h>
#endif

Note the #include <X11/Xlib.h>. The latter header file itself includes the
other X headers I mentionned.

-- 
Agostino Deligia
Software Developer
Alis Technologies Inc.
adeligia@alis.com

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]