From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,d007706da020649a,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-08-23 21:14:04 PST Newsgroups: comp.sys.dec Path: gmd.de!Germany.EU.net!mcsun!uunet!munnari.oz.au!bruce.cs.monash.edu.au!monu6!giaeb!davidm From: davidm@giaeb.cc.monash.edu.au (david miron) Subject: Complaint about Xlib.h Ultrix4.2a Message-ID: Sender: news@monu6.cc.monash.edu.au (Usenet system) Organization: Monash University, Melb., Australia. Date: Tue, 24 Aug 1993 01:53:20 GMT Recently I have installed gcc 2.4.5 with a view to utilise the g++ for developing X applications using DECs motif. The motif version is 1.1. Having just installed gcc I decided to test the compilation of a program that uses motif. I received the following error messages. gcc xlogic.c -lXm -lXt -lX11 In file included from /usr/local/lib/gcc-lib/decstation-ultrix/2.4.5/include/X11 /Intrinsic.h:43, from xlogic.c:6: /usr/local/lib/gcc-lib/decstation-ultrix/2.4.5/include/X11/Xlib.h:3958: parse error before `XSizeHints' /usr/local/lib/gcc-lib/decstation-ultrix/2.4.5/include/X11/Xlib.h:3971: parse error before `XSizeHints' /usr/local/lib/gcc-lib/decstation-ultrix/2.4.5/include/X11/Xlib.h:3981: parse error before `XSizeHints' /usr/local/lib/gcc-lib/decstation-ultrix/2.4.5/include/X11/Xlib.h:3990: parse error before `XStandardColormap' /usr/local/lib/gcc-lib/decstation-ultrix/2.4.5/include/X11/Xlib.h:4000: parse error before `XTextProperty' /usr/local/lib/gcc-lib/decstation-ultrix/2.4.5/include/X11/Xlib.h:4009: parse error before `XTextProperty' /usr/local/lib/gcc-lib/decstation-ultrix/2.4.5/include/X11/Xlib.h:4017: parse error before `XTextProperty' /usr/local/lib/gcc-lib/decstation-ultrix/2.4.5/include/X11/Xlib.h:4025: parse error before `XTextProperty' /usr/local/lib/gcc-lib/decstation-ultrix/2.4.5/include/X11/Xlib.h:4033: parse error before `XTextProperty' /usr/local/lib/gcc-lib/decstation-ultrix/2.4.5/include/X11/Xlib.h:4047: parse error before `XSizeHints' /usr/local/lib/gcc-lib/decstation-ultrix/2.4.5/include/X11/Xlib.h:4056: parse error before `XSizeHints' /usr/local/lib/gcc-lib/decstation-ultrix/2.4.5/include/X11/Xlib.h:4064: parse error before `XStandardColormap' /usr/local/lib/gcc-lib/decstation-ultrix/2.4.5/include/X11/Xlib.h:4074: parse error before `XTextProperty' /usr/local/lib/gcc-lib/decstation-ultrix/2.4.5/include/X11/Xlib.h:4083: parse error before `XTextProperty' /usr/local/lib/gcc-lib/decstation-ultrix/2.4.5/include/X11/Xlib.h:4091: ps any on successfully ported gcc toarse error before `XTextProperty' /usr/local/lib/gcc-lib/decstation-ultrix/2.4.5/include/X11/Xlib.h:4099: parse error before `XTextProperty' /usr/local/lib/gcc-lib/decstation-ultrix/2.4.5/include/X11/Xlib.h:4107: parse error before `XTextProperty' /usr/local/lib/gcc-lib/decstation-ultrix/2.4.5/include/X11/Xlib.h:4113: parse error before `*' /usr/local/lib/gcc-lib/decstation-ultrix/2.4.5/include/X11/Xlib.h:4123: parse error before `XSizeHints' The machine is Personal decstation 5000/25 using Ultrix 4.2a. To configure the Makefile for gcc I used configure --target=decstation-ultrix The above compilation works using ``cc''. I am extremely frustrated with this problem and have spent hours on it. Any suggestions on how to fix this problem would be greatly appreciated. I should add that by using the -traditional flag on gcc produces syntax errors in file.h while using the mit include libraries for compilation produces XtToolkit warnings that XtAddCallbacks cannot be found. Thus while gcc successfully compiles the application when the executable is run I only half the application is produced. 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. Has anyone successfully ported gcc to their decstation and compiled motif successfully I would love to hear from you. (My machine is standalone). If DEC is reading this I am extremely frustrated and apologise if I sound or have been curt but I have spent hours on this problem trying to rectify it. Can you please help me out. Thanks in advance and take care David. -- David Miron Dollarburn Road, Warragul, Australia, 3820. Email: davidm%giaeb.cc.monash.edu.au