home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / ultrix / 6291 < prev    next >
Encoding:
Internet Message Format  |  1992-08-18  |  2.0 KB

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