Article View: gnu.g++.help
Article #465Compiling a Xt-program with g++ compiler...
From: Michael Tiemann
Date: Mon, 04 Feb 1991 03:42
Date: Mon, 04 Feb 1991 03:42
40 lines
1743 bytes
1743 bytes
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
Technical Details
Message-ID:
<9102040342.AA09529@teacake.Eng.Sun.COM>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!tut.cis.ohio-state.edu!eng.sun.com!tiemannReferences:
<1991Feb3.224043.21884@menudo.uh.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!tut.cis.ohio-state.edu!eng.sun.com!tiemann From: tiemann@eng.sun.com (Michael Tiemann) Newsgroups: gnu.g++.help,comp.lang.c++ Subject: Compiling a Xt-program with g++ compiler... Message-ID: <9102040342.AA09529@teacake.Eng.Sun.COM> Date: 4 Feb 91 03:42:08 GMT References: <1991Feb3.224043.21884@menudo.uh.edu> Sender: daemon@tut.cis.ohio-state.edu Reply-To: tiemann@cygnus.com Followup-To: gnu.g++.help Organization: Cygnus Support (+1 415 322 3811) Lines: 40