Date: Mon, 8 Dec 1997 16:35:55 +0200 (IST) From: Eli Zaretskii To: Fatzi Michael cc: djgpp AT delorie DOT com Subject: Re: Error in compiling In-Reply-To: <01bd033d$4acfe970$ca238380@phobos> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.