Re: [Flex-help] undefined reference to 'yylex'
flex is a tool for generating scanners
Brought to you by:
wlestes
From: Will E. <wes...@gm...> - 2014-04-11 13:26:37
|
The question is why the linker isn't finding yylex() in his libfl.so, even though it's looking there. I'll look into that later this evening. The point of libfl is that it provides(among other things) a yylex(). On Friday, 11 April 2014, 8:38 am +0200, Michele Bert <mic...@gm...> wrote: > 2014-04-11 3:29 GMT+02:00 liugongquan123 <liu...@16...>: > > gcc -g -O2 -Wall -o xsup_set_pwd xsup_set_pwd.o -lfl -liw -lm -L../../../lib/libxsupgui -lxsupgui -lssl -lcrypto > > /usr/local/lib/libfl.so: undefined reference to `yylex' > > collect2: ld returned 1 exit status > > It confirm what I told you. You are trying to build the executable > "xsup_set_pwd" from the object "xsup_set_pwd.o" (which I assume is > comeing from "xsup_set_pwd.c" and some libraries, and it does not find > the function "yylex()" defined anywhere. There should be a file > <lexfile>.ll, from which a <lexfile>.c is generated, and compiled in > <lexfile>.o. If you recognise that file, try the command > > gcc -g -O2 -Wall -o xsup_set_pwd xsup_set_pwd.o <lexfile>.o -lfl > -liw -lm -L../../../lib/libxsupgui -lxsupgui -lssl -lcrypto > > and the link command should succeed. > We can give more accurate indications if you run "make clean" and than > "make", and post here the whole output. > -- > Michele > > ------------------------------------------------------------------------------ > Put Bad Developers to Shame > Dominate Development with Jenkins Continuous Integration > Continuously Automate Build, Test & Deployment > Start a new project now. Try Jenkins in the cloud. > http://p.sf.net/sfu/13600_Cloudbees > _______________________________________________ > Flex-help mailing list > Fle...@li... > https://lists.sourceforge.net/lists/listinfo/flex-help -- Will Estes (wl...@us...) Flex Project Maintainer http://flex.sourceforge.net/ |