C
Christian Christmann
Hi,
I'm using "flex" which is creating a file called lex.yy.c and this
C file is added to a library. In another directory I have to use flex for
another file and also add the second lex.yy.c to another library.
Hence, I need to include both libraries and while linking I get an
e.g. "multiple definition of `yyleng'" since yyleng is created in both
lexx.yy.c.
I can't change the variable name yyleng since it's
automatically created by flex. Any idea how to solve this problem?
Thank you
Chris
I'm using "flex" which is creating a file called lex.yy.c and this
C file is added to a library. In another directory I have to use flex for
another file and also add the second lex.yy.c to another library.
Hence, I need to include both libraries and while linking I get an
e.g. "multiple definition of `yyleng'" since yyleng is created in both
lexx.yy.c.
I can't change the variable name yyleng since it's
automatically created by flex. Any idea how to solve this problem?
Thank you
Chris