www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/05/24/03:46:37

From: Christopher Heng <cyfhsite!chris>
Subject: Re: djgpp flex
To: Joseph Bergin <BERGINF AT pacevm DOT dac DOT pace DOT edu>
Date: Tue, 24 May 1994 12:54:50 +0800 (SST)
Cc: djgpp <djgpp AT sun DOT soe DOT clarkson DOT edu>
Reply-To: chris%cyfhsite AT csar DOT csah DOT com

Hi Joseph,

In a previous message, Joseph Bergin wrote:
> 
> Hi. I recently loaded your system 1.11 Maint 5 and things seem to work
> fine except flex. I'm using a flex scanner, but on the link step
> gcc cant open the fl library. I'm using the -lfl switch, of course. I can't
> find it either, nor any reference to it in the docs. Help please. I'm
> also having trouble with the Modula-3 system from K Preschern, but will
> bother him with that. (I'm getting segmentation errors from the 'Hello'
> program, but it compiles ok.) Thanks. Joe Bergin, Pace University.
> 

You probably don't need the -lfl switch. Just include a main() function that
calls the yylex() function. Flex 2.3.8 does not depend on a library, as far
as I can tell. (I think flex 2.4.6 requires one for the yywrap() function,
but yywrap() is just a macro in 2.3.8).

Regards,

Chris Heng.

-- 
+-------------------+-----------------------------------+
| Christopher Heng  | Internet: chris%cyfhsite AT csah DOT com |
| Singapore         |           csah.com!cyfhsite!chris |
+-------------------+-----------------------------------+

- Raw text -


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