flex: unnamed-faq-67

 
 unnamed-faq-67
 ==============
 
      To: hassan@larc.info.uqam.ca (Hassan Alaoui)
      Subject: Re: Thanks
      In-reply-to: Your message of Mon, 22 Dec 1997 16:06:35 PST.
      Date: Mon, 22 Dec 1997 14:35:05 PST
      From: Vern Paxson <vern>
      
      > Thank you very much for your help. I compile and link well with C++ while
      > declaring 'yylex ...' extern, But a little problem remains. I get a
      > segmentation default when executing ( I linked with lfl library) while it
      > works well when using LEX instead of flex. Do you have some ideas about the
      > reason for this ?
      
      The one possible reason for this that comes to mind is if you've defined
      yytext as "extern char yytext[]" (which is what lex uses) instead of
      "extern char *yytext" (which is what flex uses).  If it's not that, then
      I'm afraid I don't know what the problem might be.
      
      		Vern