home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.ultrix:6291 gnu.gcc.help:1930
- Newsgroups: comp.unix.ultrix,gnu.gcc.help
- Path: sparky!uunet!mcsun!dxcern!sunra10!pb
- From: pb@sunra10.cern.ch (Peter Beckmann)
- Subject: Re: DECstation /usr/include/X11/Xlib.h and gcc.
- Message-ID: <1992Aug18.113949.22275@dxcern.cern.ch>
- Sender: news@dxcern.cern.ch (USENET News System)
- Organization: CERN European Lab for Particle Physics
- References: <1992Aug11.133444.16164@uicc.com> <MAN.92Aug18102626@imrryr.at>
- Date: Tue, 18 Aug 1992 11:39:49 GMT
- Lines: 42
-
- In article <MAN.92Aug18102626@imrryr.at>, man@magwien.gv.at (Andreas Manessinger) writes:
- > >>>>> On Tue, 11 Aug 1992 13:34:44 GMT, putsch@uicc.com (Jeff Putsch) said:
- >
- > Jeff> While trying to complie an X11 application with gcc-2.2.2 on DECstations
- > Jeff> I get the following error:
- >
- > >In file included from ../include/p2c/newcrt.h:4, from newci.c:40:
- > >/usr/include/X11/Xlib.h:3958: parse error before `XSizeHints'
- ....
- > >/usr/include/X11/Xlib.h:4099: parse error before `XTextProperty'
- > >/usr/include/X11/Xlib.h:4107: parse error before `XTextProperty'
- > >/usr/include/X11/Xlib.h:4113: parse error before `*'
- > >/usr/include/X11/Xlib.h:4123: parse error before `XSizeHints'
- > >*** Error code 1
- >
- > Jeff> Looking at Xlib.h (only for the first parse error...) I find:
- >
- > >extern int XWMGeometry(
- > >#if NeedFunctionPrototypes
- ...
- > > int* /* width_return */,
- > > int* /* height_return */,
- > > int* /* gravity_return */
- > >#endif
- > > );
- >
- > Jeff> I don't see anything wrong with this. Could some kind soul please enlighten
- > Jeff> me AND suggest a solution?
-
- There are several points:
-
- If you try to compile a X11R5 application and have only the R4 headers
- you will get this error.
-
- Annother possibility could be that you have a /usr/local/include
- directory which gcc will look up BEFORE tyhe /usr/include directory.
-
- Peter
-
- Peter Beckmann
- CERN ECP/RA DecNet: vxcern::peterb
- Ch-1211 Geneva 23 InterNet: peterb@cernvm.cern.ch
-