Re: "identifier redeclared" error on SunOS with yacc

2008-10-01 Thread Joel E. Denny
On Wed, 1 Oct 2008, Umut Emin wrote: > 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 > yacc -t -d -b parser parser.y > mv parser.tab.h pars

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