Lee Bradshaw <[EMAIL PROTECTED]> writes:

> I'm trying to port some code from HP-UX to linux. The debian flex
> package includes /usr/lib/libl.a, but the bison package doesn't contain
> /usr/lib/liby.a. I checked the latest contents file I could find and
> there is no liby.a. What is gcc -ly supposed to link with?

liby, found on various commercial Unices, contains a default
definition of yyerror() and a default main(). There is no
default yyerror() anywhere in bison (at least as of bison 1.25).

I couldn't find any documentation mentioning -ly at the HP-UX
box I'm sitting at; it does not seem to be in the canon of
"things one can expect do to portably on unices". 

bison.info contains source for a reasonable default yyerror()
you could use instead of -ly.

-- 
Henning Makholm
http://www.diku.dk/students/makholm

Reply via email to