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

  1. Newsgroups: gnu.gcc.help
  2. Path: sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!osf.ORG!meissner
  3. From: meissner@osf.ORG
  4. Subject: gcc & X Windows?
  5. Message-ID: <9301050300.AA02544@curley.osf.org>
  6. Sender: daemon@cis.ohio-state.edu
  7. Organization: GNUs Not Usenet
  8. References: meissner@osf.ORG
  9. Distribution: gnu
  10. Date: Mon, 4 Jan 1993 17:00:28 GMT
  11. Lines: 29
  12.  
  13. | Are there some special commandline options I should use in order
  14. | to make gcc compile X11R4/Motif1.1.? source?
  15. | I just compiled and install gcc 2.3.3 on my DECstation 5000 (Ultrix4.2)
  16. | and I can't seem to make it compile X source.
  17.  
  18. While I no longer run Ultrix on my machine, I vaguely recall that this
  19. is caused by an incorrect header file from DEC (after all 3.1, 4.0,
  20. 4.1, and 4.2 all have had different problems with header files).  In
  21. particular, DEC put some prototypes that use types that haven't been
  22. declared yet in the file.  I've heard people recomending either adding
  23. -I/usr/include/mit to get the MIT versions of the header files, using
  24. the -traditional switch to turn of ANSI C, or manually fixing the
  25. include files.
  26.  
  27. | I get the following when trying to compile a simple logout button:
  28. | gcc -O -s -D_NO_PROTO xlogout.c -lXm -lXt -lX11 -lm -o xlogout
  29. | In file included from /usr/include/X11/Intrinsic.h:44, from /usr/include/Xm/Xm.h
  30. | :83, from xlogout.c:6:
  31. | /usr/include/X11/Xlib.h:3958: parse error before `XSizeHints'
  32.  
  33.     ...
  34.  
  35. --
  36. Michael Meissner    email: meissner@osf.org        phone: 617-621-8861
  37. Open Software Foundation, 11 Cambridge Center, Cambridge, MA, 02142
  38.  
  39. You are in a twisty little passage of standards, all conflicting.
  40.