[Ilugc] lex and yacc on RH7.2

  • From: prabhatc@xxxxxxxxxxx (Prabhat Chandra Biswas)
  • Date: Wed, 24 Jul 2002 06:07:25 -0400

Hi,
        I have a function called input() defined in parser.y. And in lexer.l
I've defined

#define input           rbc_input

When I compile parser.y on Solaris (Forte cc compiler) everything is fine.
But when I compile the same file on RH7.2 (using gcc 3.0.3) getting the
following error:

parser.y:5708: redefinition of `rbc_input'
lexer.l:873: `rbc_input' previously defined here

Does anyone have any idea on this?

Thanks in advance,
-Prabhat


Other related posts: