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

  1. Xref: sparky comp.unix.ultrix:6308 gnu.gcc.help:1934
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!mips!darwin.sura.net!haven.umd.edu!umd5!shy.umd.edu!hunt
  3. From: hunt@shy.umd.edu (Brian Hunt)
  4. Newsgroups: comp.unix.ultrix,gnu.gcc.help
  5. Subject: Re: DECstation /usr/include/X11/Xlib.h and gcc.
  6. Message-ID: <hunt.714159566@shy.umd.edu>
  7. Date: 18 Aug 92 17:39:26 GMT
  8. References: <1992Aug11.133444.16164@uicc.com> <MAN.92Aug18125150@imrryr.at>
  9. Sender: news@umd5.umd.edu
  10. Lines: 32
  11.  
  12. man@magwien.gv.at (Andreas Manessinger) writes:
  13. >Meanwhile I got a hint from `olle@bellatrix.tdb.uu.se'. He writes:
  14. > olle> You will have to edit the files Xlib.h and Xutil.h.
  15. > olle> You will need to move some definitions (those in your listing
  16. > olle> and some others) from Xutil to XLib
  17. >
  18. >Well, that's really all you have to do. The definitions you have to
  19. >move are:
  20. >        XSizeHints
  21. >        XWMHints
  22. >        XTextProperty
  23. >        XClassHint
  24. >        XStandardColormap
  25.  
  26. Rearranging Xlib.h and Xutil.h is no doubt the best solution; someone
  27. was nice enough to send me his fix, which basically consisted of
  28. moving all the definitions after the
  29.  
  30. /*
  31.  *    ICCCM stuff
  32.  */
  33.  
  34. comment from Xlib.h into Xutil.h (he also fixed 3 bad #endif lines in
  35. Xlib.h, dunno how much difference that makes).
  36.  
  37. However, a really quick fix which some people may prefer to try first
  38. is to use the "-traditional-cpp" option to gcc.  I vaguely recall this
  39. causing other problems in some cases, but it many cases it worked fine
  40. for me.
  41.  
  42. Brian Hunt
  43. hunt@ipst.umd.edu
  44.