This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
g++, Solaris, and X11
- To: gcc-bugs at gcc dot gnu dot org
- Subject: g++, Solaris, and X11
- From: David A Bagley <bagleyd at tux dot org>
- Date: Wed, 3 Nov 1999 19:44:09 -0500 (EST)
Hi
gcc 2.95.1
Solaris 2.7
c++ -Wall -g -W -Wpointer-arith -Wbad-function-cast -Wcast-align -Wmissing-prototypes -Wstrict-prototypes -c -o glx/i_figureeight.o -DHAVE_CONFIG_H -DDEF_FILESEARCHPATH=\"/usr/remote/lib/app-defaults/%N%C%S:/usr/remote/lib/app-defaults/%N%S\" -I. -I.. -I../../xlock/ -I../.. -I/usr/openwin/include -I/usr/remote/include/X11 -I/usr/remote/include -I/usr/dt/include -g -O2 ../../modes/glx/i_figureeight.cc
In file included from ../../xlock/xlock.h:144,
from ../../modes/glx/i_twojet.h:7,
from ../../modes/glx/i_threejet.h:3,
from ../../modes/glx/i_threejetvec.h:3,
from ../../modes/glx/i_figureeight.h:3,
from ../../modes/glx/i_figureeight.cc:1:
/usr/openwin/include/X11/Xlib.h:2063: ANSI C++ forbids declaration `XSetTransientForHint' with no type
I maintain xlock and older versions no longer compile out of the box.
I am not in control of the include files that Sun distributes from
/usr/openwin. A warning I can live with easier.
The only way I see around this was to require -fpermissive if using g++
on Solaris. My worry is that -fpermissive may not be supported by all
versions of g++ and may cause another error.
--
Cheers,
/X\ David A. Bagley
(( X bagleyd@tux.org http://www.tux.org/~bagleyd/
\X/ xlockmore and more ftp://ftp.tux.org/pub/tux/bagleyd