Undefined Reference To yywrap

后端 未结 5 1471
后悔当初
后悔当初 2020-12-07 22:10

I have a simple \"language\" that I\'m using Flex(Lexical Analyzer), it\'s like this:

/* Just like UNIX wc */
%{
int chars = 0;
int words = 0;
int lines = 0;         


        
5条回答
  •  再見小時候
    2020-12-07 22:25

    As a note for followers, flex 2.6.3 has a bug where libfl.a "typically would" define yywrap but then doesn't in certain instances, so check if that's your version of flex, might be related to your problem:

    https://github.com/westes/flex/issues/154

提交回复
热议问题