Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!wuarchive!zaphod.mps.ohio-state.edu!lavaca.uh.edu!menudo.uh.edu!csunf!chandram From: chandram@csunf.cs.uh.edu (Thirupathi Bollam) Newsgroups: comp.windows.x Subject: Compiling Xt-Program with GNU-C++ compiler Message-ID: <1991Feb2.232706.7691@menudo.uh.edu> Date: 2 Feb 91 23:27:06 GMT References: <9101210602.AA10296@Larry.McRCIM.McGill.EDU> Sender: nntppost@menudo.uh.edu (NNTP Posting Service) Reply-To: chandram@csunf.UUCP (Thiru R Bollam) Organization: University of Houston Lines: 15 Keywords:GNU-C++, Xt.. Hi! Xperts, I've come up with a problem I couldn't solve. So, I need your help in this.. I tried to compile the xthello.c (1st program in Vol 4, O'Reilly &Assoc..) with a GNU-C++ compiler. Unfortunately, I didn't succeed in this: The compiler's output is like this: ------>In file included from xthello.c:4: /usr/include/X11/Intrinsic.h:103: parse error before 'char' The 103rd line in Instrinsic.h is : typedef char *String; Note: The same program can be compiled with 'gcc ' compiler. Is it that I can't compile X-programs with C++ compiler or some bug in the compiler? I would appreciate your commments.... my e-mail : chandram@cs.uh.edu