cc option

my yacc output file y.tab.c is not compiling using cc y.tab.c -ly command
.possibily option flag -ly is not correct.i m using red hat linux 9.please give solutions.

what error ?
-ly means link with liby do you have a liby somewhere ?

liby is the yacc library.... but I agree, what error are you getting?

the compiler generates the output:cannot recognise -ly.
probably there is some another flag in red-hat 9.Although, -ll option
for lex o/p file lex.yy.c works.

liby.<whatever> is a pretty standard name for this library - where <whatever> is
something like .so .sl .1, etc.

See if liby.* exists in usr/lib