Mail Archives: djgpp/1997/12/08/09:39:22
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 -