[Ilugc] lex and yacc on RH7.2

  • From: prakash@xxxxxxxxx (Prakash Chandrasekaran)
  • Date: Wed, 24 Jul 2002 16:39:42 +0500 (IST)

Did you compile the files in the same order?


Quoting Prabhat Chandra Biswas <prabhatc@xxxxxxxxxxx>:

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

_______________________________________________
To unsubscribe email Ilugc-request@xxxxxxxxxxxxxxxxxx with "unsubscribe"
in the subject or body of the message.
http://www.aero.iitm.ernet.in/mailman/listinfo/ilugc




-pc.
(Prakash Chandrasekaran)

Other related posts: