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