Hey all,

Compiling LilyPond with g++ on mac os x, I get the following errors:

out/lexer.cc: At global scope:
out/lexer.cc:32:25: error: prototype for 'size_t yyFlexLexer::LexerInput(char*, 
size_t)' does not match any in class 'yyFlexLexer'
     #define yyFlexLexer yyFlexLexer
                         ^
out/lexer.cc:6460:8: note: in expansion of macro 'yyFlexLexer'
 size_t yyFlexLexer::LexerInput( char* buf, size_t max_size )
        ^
In file included from out/lexer.cc:383:0:
/usr/local/opt/flex/include/FlexLexer.h:133:14: error: candidate is: virtual 
int yyFlexLexer::LexerInput(char*, int)
  virtual int LexerInput( char* buf, int max_size );
              ^
out/lexer.cc:32:25: error: prototype for 'void yyFlexLexer::LexerOutput(const 
char*, size_t)' does not match any in class 'yyFlexLexer'
     #define yyFlexLexer yyFlexLexer
                         ^
out/lexer.cc:6487:6: note: in expansion of macro 'yyFlexLexer'
 void yyFlexLexer::LexerOutput( const char* buf, size_t size )
      ^
In file included from out/lexer.cc:383:0:
/usr/local/opt/flex/include/FlexLexer.h:134:15: error: candidate is: virtual 
void yyFlexLexer::LexerOutput(const char*, int)
  virtual void LexerOutput( const char* buf, int size );
               ^


For the errors, the fix is easy - I just manually change everything to int.  
But I figured I’d signal this in case anyone knew how to fix it.  Could be a 
versioning problem with Flex?

Cheers,
MS
_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to