help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "identifier redeclared" error on SunOS with yacc


From: Umut Emin
Subject: Re: "identifier redeclared" error on SunOS with yacc
Date: Wed, 01 Oct 2008 11:33:35 +0200

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 protect against 
> redefinitions of YYSTYPE.  Solaris Yacc apparently does not.
> 

Thanks for clear explenation. 

-Umut





reply via email to

[Prev in Thread] Current Thread [Next in Thread]