Re: [Flex-help] undefined reference to 'yylex'
flex is a tool for generating scanners
Brought to you by:
wlestes
From: Michele B. <mic...@gm...> - 2014-04-17 10:08:35
|
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 |