[splint-discuss] yywrap missing
Ludolf Holzheid
lholzheid at bihl-wiedemann.de
Wed Dec 12 04:16:11 PST 2007
On Wed, 2007-12-12 16:57:07 +0530, Pramila V wrote:
> Hi,
>
> I too got the below mentioned error. Open the respective file for example
> csanner.c goto the function yywrap as given in error message.
>
> if ( yywrap() )
> {
> }
>
> Change this to as given below,
>
> if(yywrap)
> {
> }
Um, what are you trying to do?
You seem to replace a call to a function by the address of this
function. I don't know what happens if the linker can't find yywrap(),
but I *think* you used a very obscure (and non portable) way to write
`if (0)' ...
The right way to solve this problem was
o to provide an (empty) yywrap() (see the flex man page), or
o to link against libfl, or
o to use `%option noyywrap' for flex.
Ludolf
--
---------------------------------------------------------------
Ludolf Holzheid Tel: +49 621 339960
Bihl+Wiedemann GmbH Fax: +49 621 3392239
Floßwörthstraße 41 e-mail: lholzheid at bihl-wiedemann.de
D-68199 Mannheim, Germany
---------------------------------------------------------------
More information about the splint-discuss
mailing list