Article View: gnu.gcc.help
Article #50724Re: Who had compiled gcc on DECstation 5000/240?
From: Jim Wilson
Date: Sun, 15 Aug 1993 17:06
Date: Sun, 15 Aug 1993 17:06
24 lines
1937 bytes
1937 bytes
In article <24kl5d$28o@ccca.NCTU.edu.tw> erik@CCCA.NCTU.edu.tw (Jyh-Shyang Wang) writes: > I compiled gcc 2.4.5 on DECstation 5000/240,but failed. I use: >... >but when I compiled simple X program,it show: >/vsp_3/erik/local/lib/gcc-lib/mips-dec-ultrix/2.4.5/include/X11/Xlib.h:3958: >parse error before SizeHints' This is a bug in the X11 header files that DEC distributes with Ultrix. When compiled by an ANSI C compiler (i.e. when __STDC__ is defined), the header files define prototypes. However, the prototypes include references to undefined types, and thus you get syntax errors. You can not fix this problem by changing the order of include files; there are circular dependencies among the include files. Specifically, Xlib.h depends on Xutil.h, and Xutil.h depends on Xlib.h. As a result, under Ultrix, you can not compile a program that include X11 header files by ANSI C compiler unless you do something to work around this problem. One solution is to compile with -traditional. Another solution is to compile with -DNeedFunctionPrototypes=0. Jim
Technical Details
Message-ID:
<CBt8v9.Ez7@kithrup.com>Path:
arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!mcsun!uknet!doc.ic.ac.uk!agate!headwall.Stanford.EDU!kithrup.com!moria.cygnus.com!wilsonReferences:
<24kl5d$28o@ccca.NCTU.edu.tw>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,7fdf1e97015a8ed0 X-Google-Attributes: gid11318c,public X-Google-Thread: fc89c,7fdf1e97015a8ed0 X-Google-Attributes: gidfc89c,public X-Google-Thread: 104c30,7fdf1e97015a8ed0 X-Google-Attributes: gid104c30,public X-Google-ArrivalTime: 1993-08-15 10:33:18 PST Newsgroups: gnu.gcc.help,tw.comp.unix,comp.unix.programmer Path: arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!mcsun!uknet!doc.ic.ac.uk!agate!headwall.Stanford.EDU!kithrup.com!moria.cygnus.com!wilson From: wilson@moria.cygnus.com (Jim Wilson) Subject: Re: Who had compiled gcc on DECstation 5000/240? Organization: Cygnus Support References: <24kl5d$28o@ccca.NCTU.edu.tw> Nntp-Posting-Host: moria.cygnus.com Message-ID: <CBt8v9.Ez7@kithrup.com> Sender: news@kithrup.com (Mike Stump) Date: Sun, 15 Aug 1993 17:06:30 GMT Lines: 24