V
vsk
Hai all,
I have written a parser in lex. I hope most of you know that lex, a
command line utility available in linux
will take .lex file as input and it will produce .c file as output. Now
i need to make this file as a library such that
it could be used in another c-file. Thing here is, .c file produced by
lex will have a 'main' function.I renamed the main function into an
other name say 'parse' and i converted this into a library. When i
tried to use this in another c-file, it gives me the erroe as multiple
mail definitions.
Can anyne help me in this regard ?.
Thanks in advance,
I have written a parser in lex. I hope most of you know that lex, a
command line utility available in linux
will take .lex file as input and it will produce .c file as output. Now
i need to make this file as a library such that
it could be used in another c-file. Thing here is, .c file produced by
lex will have a 'main' function.I renamed the main function into an
other name say 'parse' and i converted this into a library. When i
tried to use this in another c-file, it gives me the erroe as multiple
mail definitions.
Can anyne help me in this regard ?.
Thanks in advance,