This is the mail archive of the cygwin-xfree@sourceware.cygnus.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: compiling help


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



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