[comp.lang.c++] Problems Compiling G++ 1.22.0

acy@spot.icd.abnet.COM (Adnan Yaqub) (07/16/88)

The file lex.c of G++ 1.22.0 doesn't compile (via gcc or cc) on our
Sun 360s or our Vax (which runs 4.3BSD).  The problem is that certain
types definitions (YY*) seem to be missing from the file.  I can
retrieve type definitions with the same name from the lex.c from the
GCC 1.22 distribution and make the file compile, but is this the
correct thing to do?  I have the patch for G++ which revs the software
to 1.22.1, but this didn't patch lex.c.  Any help would be greatly
appreciated.
--

+-----------------------------------------------------------------------------+
|Adnan Yaqub				...[pyramid|decvax|masscomp]!abvax!acy|
|Allen-Bradley Company 747 Alpha Dr. Highland Hts. OH 44143 USA (216) 646-4409|
+-----------------------------------------------------------------------------+

sechrist@hp-sde.SDE.HP.COM (Nancy Sechrist) (07/19/88)

Check your version of BISON. I was having a similar problem because I had
an old version of BISON. When this old version was used to create parse.tab.c,
it also overwrote parse.tab.h, thus losing some typedefs and such. I 
installed the latest BISON and the problem went away.