Sender: nate AT cartsys DOT com Message-ID: <35849941.98221D24@cartsys.com> Date: Sun, 14 Jun 1998 20:47:13 -0700 From: Nate Eldredge MIME-Version: 1.0 To: Mapson CC: djgpp AT delorie DOT com Subject: Re: Flex- small problem References: <35842d90 DOT 8605608 AT babyblue DOT cs DOT yale DOT edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Precedence: bulk Mapson wrote: > > I've been using DJGPP for a year, but only yesterday began to look in > to GNU's flex and bison for DOS. > > Bison seems to create files that compile flawlessly, at least with the > examples I've tried (even though i don't really know how to really > make bison do anything yet!). But flex creates files that seem to > always have two errors- both basically along the lines of: > lexyy.c(817) Error: undefined reference to `yywrap' Add `-lfl' to the command line; this links in a version of `yywrap' which does essentially nothing. I haven't used `flex' in a while, but I think it's done that way so that you can define your own `yywrap' if you want. (I forget exactly what `yywrap' is supposed to do, it's in the docs.) -- Nate Eldredge nate AT cartsys DOT com