[748] in SIPB_Linux_Development

home help back first fref pref prev next nref lref last post

yywrap problems

daemon@ATHENA.MIT.EDU (ghudson@MIT.EDU)
Mon Oct 17 12:51:03 1994

From: ghudson@MIT.EDU
Date: Mon, 17 Oct 94 12:50:44 -0400
To: linux-dev@MIT.EDU
Cc: jhbrown@MIT.EDU


For the record, when you get an undefined symbol yywrap(), it's
because your lex code doesn't define yywrap() and isn't linking
against the lex or flex library.  One solution (what I did with
libcomm_err) is to add your own yywrap():

%{
/* Sometimes a macro by default, but not always, so we provide a
 * function. */
#undef yywrap
%}

stuff
%%
stuff
%%
stuff

int yywrap()
{
	return 1;
}


home help back first fref pref prev next nref lref last post