[gnu.g++.help] Compiling a Xt-program with g++ compiler...

tiemann@eng.sun.com (Michael Tiemann) (02/04/91)

   Date: 3 Feb 91 22:40:43 GMT
   From: csuna!chandram@menudo.uh.edu  (Thirupathi Bollam)
   Organization: University of Houston
   Sender: help-g++-request@prep.ai.mit.edu


       I tried to compile  Xthello.c (1st program in Vol. 4 :O"Reilly Assoc.)
   with g++ compiler.
       Unfortunately this couldn't be compiled and outputs as follows:

     In /usr/include/X11/Intrinsic.h :: parse error before 'char'(line #103)

   But line #103 in Intrinsic.h contains::
	   typedef char *String;

       I would appreciate if someone could suggest me how to fix this problem.

Please read the section in g++.texinfo about how to report bugs.

	1.  You bug report was sent to help-g++, not bug-g++
	2.  You do not give a test case from which the bug can be reproduced
	3.  You do not give the version number of the compiler you used,
	nor the machine architecture for which it was built.


   Another Q::

       Can I do like this?
	   1. Compile one program source file with 'gcc compiler'
	 and another source file with 'g++ compiler'

	   then link them both with 'g++ compiler'.

Yes.

   Thanx in advance...
   Pl. reply to chandram@cs.uh.edu

Michael