"identifier redeclared" error on SunOS with yacc

2008-09-30 Thread Umut Emin
Hello List, I have written a parser in bison which works with flex together. The compilation and execution work just fine on machines with bison. I tried to port these in a Sun OS where only yacc is installed (version output> yacc: Software Generation Utilities (SGU) Solaris-ELF (4.0) ). Unfortuna

Re: "identifier redeclared" error on SunOS with yacc

2008-10-01 Thread Umut Emin
Hello Joel and List, On Wed, 2008-10-01 at 03:39 -0400, Joel E. Denny wrote: > In parser.y, try removing: > > #include "parser.h" > > parser.c should already contain the contents of parser.h. I took your advice and it works. > When Bison generates parser.h, it generates a cpp guard to prote