From: hunt@shy.umd.edu (Brian Hunt)
Subject: Re: Complaint about Xlib.h Ultrix4.2a
Date: 25 Aug 93 05:41:58 GMT [thread overview]
Message-ID: <hunt.746257318@shy.umd.edu> (raw)
In-Reply-To: davidm.746157200@giaeb
[Problem: gcc won't compile anything which includes Xlib.h.]
davidm@giaeb.cc.monash.edu.au (david miron) writes:
>I have been informed that this is a problem with DECs header files
>Xlib.h and Xutils.h. Has DEC got a fix for this problem or am I stuck
>with header files that are as handy as a pocket in your underpants.
Yep, DEC's own ANSI compiler (c89) doesn't like Xlib.h either. Dunno
if there's an official fix, but the following works for me.
Move the block of lines in Xlib.h starting with the comment:
/*
* ICCCM stuff
*/
and ending just before the lines:
#ifdef __cplusplus
} /* for C++ V2.0 */
#endif
(at almost the end of the file) to the analogous location in Xutil.h.
If you'd rather not alter the files in /usr/include/X11, you can put
copies of the fixed Xlib.h and Xutil.h in /usr/local/include/X11, and
gcc will see them (unless you told it to look elsewhere with the
"--local-prefix" flag when you ran configure). Hope this works for
you.
--
Brian Hunt
hunt@ipst.umd.edu
next prev parent reply other threads:[~1993-08-25 5:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1993-08-24 1:53 Complaint about Xlib.h Ultrix4.2a david miron
1993-08-25 5:41 ` Brian Hunt [this message]
1993-09-03 10:25 ` Burkhard Neidecker-Lutz
-- strict thread matches above, loose matches on Subject: below --
1993-08-24 15:46 George P. Swanton
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox