From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,d007706da020649a X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-08-24 23:18:49 PST Path: gmd.de!xlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!haven.umd.edu!umd5.umd.edu!shy.umd.edu!hunt From: hunt@shy.umd.edu (Brian Hunt) Newsgroups: comp.sys.dec Subject: Re: Complaint about Xlib.h Ultrix4.2a Date: 25 Aug 93 05:41:58 GMT Organization: University of Maryland, College Park Message-ID: References: NNTP-Posting-Host: shy.umd.edu [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