[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

lex



hi
i seem to have a problem with the lex library. when i
try to compile a simple lex program without main using
the command gcc -lfl lex.yy.c i get the following
error messages
/tmp/cci3rrkC.o:In fuction 'yylex':
/tmp/cci3rrkC.o:(.text+0x37c):undefined refrence to
'yywrap'
/tmp/cci3rrkC.o:In fuction 'input':
/tmp/cci3rrkC.o:(.text+0xb46):undefined refrence to
'yywrap'

if i include a main that does nothing more than call
yylex() then along with the above 2 error mesgs i also
get the following

in funtion main : multiple definition of main
warning : size of symbol main changed from 18 to 10

i use caldera and the flex version is 2.5.4 and egcs
1.1.2 

i also had a problem with the ncurses library earlier
and had to install a newer version. do i have to do
the same here too. if so, is it as easy as installing
from an rpm or are there dependencies that i have to
worry about ?

please help

sindhoor


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/