[comp.windows.x] Compiling Xt-Program with GNU-C++ compiler

chandram@csunf.cs.uh.edu (Thirupathi Bollam) (02/03/91)

  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