🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #802

gcc & X Windows?

#802
From: meissner
Date: Mon, 04 Jan 1993 17:00
29 lines
1671 bytes
| 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.

While I no longer run Ultrix on my machine, I vaguely recall that this
is caused by an incorrect header file from DEC (after all 3.1, 4.0,
4.1, and 4.2 all have had different problems with header files).  In
particular, DEC put some prototypes that use types that haven't been
declared yet in the file.  I've heard people recomending either adding
-I/usr/include/mit to get the MIT versions of the header files, using
the -traditional switch to turn of ANSI C, or manually fixing the
include files.

| 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'

	...

--
Michael Meissner	email: meissner@osf.org		phone: 617-621-8861
Open Software Foundation, 11 Cambridge Center, Cambridge, MA, 02142

You are in a twisty little passage of standards, all conflicting.
Technical Details
Message-ID: <9301050300.AA02544@curley.osf.org>
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!osf.ORG!meissner
References: meissner@osf.ORG

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!osf.ORG!meissner
From: meissner@osf.ORG
Subject: gcc & X Windows?
Message-ID: <9301050300.AA02544@curley.osf.org>
Sender: daemon@cis.ohio-state.edu
Organization: GNUs Not Usenet
References: meissner@osf.ORG
Distribution: gnu
Date: Mon, 4 Jan 1993 17:00:28 GMT
Lines: 29