help-flex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

linking question


From: Buday Gergely
Subject: linking question
Date: Wed, 3 Dec 2003 13:54:55 +0100 (MET)

Hi,

I'm using flex 2.5.4 .

I've tried to compile my source by

gcc -lfl lex.yy.c 

and got

/tmp/ccIUpLYB.o: In function `yylex':
/tmp/ccIUpLYB.o(.text+0x2fc): undefined reference to `yywrap'
/tmp/ccIUpLYB.o: In function `input':
/tmp/ccIUpLYB.o(.text+0xb12): undefined reference to `yywrap'
collect2: ld returned 1 exit status

but with

gcc lex.yy.c /usr/lib/libfl.a

it went smoothly. What should I set in order to use -lfl?

- Gergely 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]