[17117] in Athena Bugs

home help back first fref pref prev next nref lref last post

sun4 8.3.16: gnu g++ and openwin includes

daemon@ATHENA.MIT.EDU (Emil Sit)
Tue Aug 31 05:57:30 1999

Message-Id: <199908310957.FAA03804@hodge-podge.mit.edu>
To: bugs@MIT.EDU
Date: Tue, 31 Aug 1999 05:57:21 -0400
From: Emil Sit <sit@MIT.EDU>

System name:		hodge-podge.mit.edu
Type and version:	Ultra-5_10 8.3.16 (with mkserv)
Display type:		m

Shell:			/bin/athena/tcsh
Window manager:		/mit/windowmanagers/bin/fvwm

What were you trying to do?
	
	Trying to compile a c++ program that includes Xlib.h and Xutil.h.
	I'm using c++ out of the gnu locker (2.95).

What's wrong:
	I get lots of errors like:
/usr/openwin/include/X11/Xutil.h:903: ANSI C++ forbids declaration `XXorRegion' with no type

What should have happened:
	The openwin include files should have types instead of assuming
    one. XFree appears to. I don't believe there's a compiler flag to
    tell g++ to be more lenient about this, or at least I couldn't find
    it. The version of egcs in the egcs locker seems to allow it through,
    after complaints.
--
Emil Sit / Bronx Science '95, MIT '99 -- ESG, SIPB, Athena Consulting
PGP KeyID: 0xE63561E9 / Fingerprint:  A68FD0693EDABA19  2671EC1F22498F58

home help back first fref pref prev next nref lref last post