delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/06/15/00:02:24

Sender: nate AT cartsys DOT com
Message-ID: <35849941.98221D24@cartsys.com>
Date: Sun, 14 Jun 1998 20:47:13 -0700
From: Nate Eldredge <nate AT cartsys DOT com>
MIME-Version: 1.0
To: Mapson <mapson AT mapson DOT com>
CC: djgpp AT delorie DOT com
Subject: Re: Flex- small problem
References: <35842d90 DOT 8605608 AT babyblue DOT cs DOT yale DOT edu>

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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019