Re: [Flex-help] undefined reference to 'yylex'
flex is a tool for generating scanners
Brought to you by:
wlestes
From: liugongquan123 <liu...@16...> - 2014-04-21 05:45:02
|
Thank you very much for your help. I fixed this issue by using flex-2.5.33 instead. So far as I know,the "undefined reference to 'yylex'" errors of flex-2.5.39 does exist, maybe there is something to be corrected . Best regards. At 2014-04-17 18:08:28,"Michele Bert" <mic...@gm...> wrote: >2014-04-14 10:48 GMT+02:00 liugongquan123 <liu...@16...>: >> I wonder if there is something incorrect in the generated Makefile , leading to the absence of yylex defination when generating libfl.so. ButI don't know how to fix it.Can you help me? Thank you!>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(). > >Here we are going out of scope of my knowelge. If the yylex function >is defined in libfl.so, the only thing I would check is whether and >how it is exported. For example: >- is it defined static or extern? Maybe your compiler, or options >given to it implies a static declaration? >- ir it C or C++. I mean: is it exported with mangled name? > >Michele > > >-- >Michele |