[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Linking a static library with -fPIC for flex

On Thu, Sep 07, 2006 at 02:45:50PM -0500, Bill Allombert wrote:

> So if you are to write a library that include a flex scanner, all you
> have to do is to prvide your own yywrap() function, even if it is
> just return 1; and you won't need to link with libfl.a.

Why can't flex emit a default yywrap() function as part of the scanner
code, marking it __attribute__((weak)) so the app can override it?


     MTA SZTAKI Computer and Automation Research Institute
                Hungarian Academy of Sciences

Reply to: