home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / gnu / gcc / help / 2856 < prev    next >
Encoding:
Text File  |  1993-01-05  |  1.4 KB  |  42 lines

  1. Newsgroups: gnu.gcc.help
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ling.gu.se!beskow
  3. From: beskow@ling.gu.se (Bjoern Beskow)
  4. Subject: Re: gcc & X Windows?
  5. Message-ID: <9301051222.AA12851@hjelmslev.ling.gu.se>
  6. Sender: daemon@cis.ohio-state.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Tue, 5 Jan 1993 14:22:22 GMT
  10. Lines: 30
  11.  
  12. Hi,
  13.  
  14. Bradley Carl Beck writes:
  15. > Are there some special commandline options I should use in order
  16. > to make gcc compile X11R4/Motif1.1.? source?
  17. > I just compiled and install gcc 2.3.3 on my DECstation 5000 (Ultrix4.2)
  18. > and I can't seem to make it compile X source.
  19. > I get the following when trying to compile a simple logout button:
  20. > gcc -O -s -D_NO_PROTO xlogout.c -lXm -lXt -lX11 -lm -o xlogout
  21. > In file included from /usr/include/X11/Intrinsic.h:44, from /usr/include/Xm/Xm.h
  22. > :83, from xlogout.c:6:
  23. > /usr/include/X11/Xlib.h:3958: parse error before `XSizeHints'
  24. > /usr/include/X11/Xlib.h:3971: parse error before `XSizeHints'
  25.  
  26. I had the same problem. The reason is that some of the typedefs
  27. in  DEC's distribution of X.h and Xutil.h are in the wrong files
  28. (because Xlib includes only X.h, I suppose).  Therefore the typedefs
  29. for XSizeHints,XWMHints, XTextProperty, XClassHint & XStandardColormap
  30. should be moved from Xutil.h to X.h
  31.  
  32. If you like, I can send you my patched files. Just
  33. drop me a line!
  34.  
  35. Good luck!
  36. /Bj|rn
  37.  
  38.