g++, Solaris, and X11

David A Bagley bagleyd@tux.org
Wed Nov 3 16:44:00 GMT 1999


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


More information about the Gcc-bugs mailing list