compiling help

Mumit Khan khan@NanoTech.Wisc.EDU
Sun Dec 12 18:09:00 GMT 1999


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




More information about the Cygwin-xfree mailing list