www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/08/09:39:22

Date: Mon, 8 Dec 1997 16:35:55 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Fatzi Michael <e9226698 AT stud2 DOT tuwien DOT ac DOT at>
cc: djgpp AT delorie DOT com
Subject: Re: Error in compiling
In-Reply-To: <01bd033d$4acfe970$ca238380@phobos>
Message-ID: <Pine.SUN.3.91.971208163535.4200n-100000@is>
MIME-Version: 1.0

On 7 Dec 1997, Fatzi Michael wrote:

> When I use a FLEX-generated *.c file (with DJGPP V2)
> gcc -lfl lexyy.c
> 
> i get an interesting error and not an executable DOS-file:
> 
> lexyy.c(.text+0x793): undefined reference to `yywrap'
> lexyy.c(.text+0xf31): undefined reference to `yywrap'

You need to put -lfl *after* all the source and object files.  DJGPP
uses a one-pass linker, so the order of the files is important when
linking.  See section 8.9 of the DJGPP FAQ list for more details.

- Raw text -


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