This is the mail archive of the
cygwin-xfree@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: compiling help
- To: Joel Guerrero <joegi at geocities dot com>
- Subject: Re: compiling help
- From: Mumit Khan <khan at NanoTech dot Wisc dot EDU>
- Date: Sun, 12 Dec 1999 20:09:25 -0600 (CST)
- cc: xfree mai list <cygwin-xfree at sourceware dot cygnus dot com>
On Sun, 12 Dec 1999, Joel Guerrero wrote:
> Hi there,
> I'm trying to compile an X program, I install the xfree libraries, but i
> get this error:
> .
> .
> .
> .
> .
> .
> //d/cygnus/cygwin-b20/usr/x11r6.4/include/x11/xutil.h:898: ANSI C++
> forbids declaration 'XXorRegion" with no type
> make: *** [Xrgraph_g.o] Error 1
> What could be?
> I succesful compiled another application that uses ths xutil.h include
> file
> Can anyone help me?
You can upgrade to a newer version of X11R6 that has the prototypes
fixed so that it's legal C++ (I don't know if that exists for Cygwin
or not). Until then, you can use -isystem /usr/local/X11R6.4/include
instead of -I /usr/local/X11R6.4/include to compile. You can also
use -fpermissive, but I recommend against it. Substitute the real
include path with /usr/local/X11R6.4/include of course.
Regards,
Mumit