Hello, I had the same problems a few weeks ago and posted a workaround to this mailing-list. Here is the copy of the original mail :
------------- Hello, Using gcc 3.2 and flex 1.5.19 (ftp://ftp.uncg.edu/people/wlestes/), and thanks to advices from Joerg Anders (thanks a lot), I manage to compile lilypond 1.6.2 by adding : using namespace std; at the top of lily/lexer.ll I report this in the hope that it will be useful for other users... (I did not need to use others fixs in complement, configure ; make all works fine.) Many thanks to people who answered my messages in lilypond-users mailing-list and help me to resolve that problem :-)... I can now use the last version of lilypond thanks to these helps :-) Alex. PS : little patch attached. ----------------- Hoping it will help :-) (let me know) Alex. Heikki Johannes Junes wrote: > After updating to Mandrake 9.0, I have now > > $ gcc --version > gcc (GCC) 3.2 (Mandrake Linux 9.0 3.2-1mdk) > > $ guile --version > Guile 1.4 > > $ flex --version > flex version 2.5.4 > > I started to compile CVS-stable-lilypond from scratch. I tried to run some > commands: > > ./autogen.sh > > ./lexer-gcc-3.1.sh > > rm -f config.cache > CPPFLAGS=-I/home/lilypond/lily/out ./configure > ./lexer-gcc-3.1.sh > make > > Finally, there appeared the following trace: > > hyphen-spanner.cc:120:3: warning: multi-line string literals are > deprecated > rm -f ./out/includable-lexer.dep; > DEPENDENCIES_OUTPUT="./out/includable-lexer.dep ./out/includable-lexer.o" > g++ -c -DHAVE_CONFIG_H -DSTRING_UTILS_INLINED -Iinclude -I./out > -I../flower/include -I../flower/./out -I../flower/include -O2 > -finline-functions -g -I/home/lilypond/lily/out -I/usr/include -O2 > -finline-functions -g -I/home/lilypond/lily/out -I/usr/include -Wall -W > -Wmissing-prototypes -Wconversion -o out/includable-lexer.o > includable-lexer.cc > cc1plus: warning: changing search order for system directory > "/usr/include" > cc1plus: warning: as it has already been specified as a non-system > directory > In file included from include/includable-lexer.hh:13, > from includable-lexer.cc:13: > out/FlexLexer.h:64: no class template named `std' in `std' > out/FlexLexer.h:64: `s' was not declared in this scope > out/FlexLexer.h:64: parse error before `)' token > out/FlexLexer.h:66: no class template named `std' in `std' > out/FlexLexer.h:66: `s' was not declared in this scope > out/FlexLexer.h:66: virtual outside class declaration > out/FlexLexer.h:66: variable or field `yyrestart' declared void > out/FlexLexer.h:71: no class template named `std' in `std' > out/FlexLexer.h:71: `new_in' was not declared in this scope > out/FlexLexer.h:71: no class template named `std' in `std' > out/FlexLexer.h:71: `new_out' was not declared in this scope > out/FlexLexer.h:72: initializer list being treated as compound expression > out/FlexLexer.h:72: syntax error before `{' token > out/FlexLexer.h: In member function `const char* FlexLexer::YYText()': > out/FlexLexer.h:58: `yytext' undeclared (first use this function) > out/FlexLexer.h:58: (Each undeclared identifier is reported only once for > each function it appears in.) > out/FlexLexer.h: In member function `int FlexLexer::YYLeng()': > out/FlexLexer.h:59: `yyleng' undeclared (first use this function) > out/FlexLexer.h: At global scope: > out/FlexLexer.h:79: warning: `virtual' is not at beginning of declaration > out/FlexLexer.h:79: no class template named `std' in `std' > out/FlexLexer.h:79: `new_in' was not declared in this scope > out/FlexLexer.h:80: no class template named `std' in `std' > out/FlexLexer.h:80: `new_out' was not declared in this scope > out/FlexLexer.h:80: two or more data types in declaration of > `switch_streams' > out/FlexLexer.h:80: virtual outside class declaration > out/FlexLexer.h:80: cannot declare variable `switch_streams' to be of type > `FlexLexer' > out/FlexLexer.h:80: because the following virtual functions are > abstract: > out/FlexLexer.h:68: virtual int FlexLexer::yylex() > out/FlexLexer.h:65: virtual void > FlexLexer::yy_delete_buffer(yy_buffer_state*) > out/FlexLexer.h:64: virtual yy_buffer_state* > FlexLexer::yy_create_buffer(...) > out/FlexLexer.h:62: virtual void > FlexLexer::yy_switch_to_buffer(yy_buffer_state*) > out/FlexLexer.h:80: assignment (not initialization) in declaration > out/FlexLexer.h:82: non-member function `int lineno()' cannot have `const' > method qualifier > out/FlexLexer.h: In function `int lineno()': > out/FlexLexer.h:82: `yylineno' undeclared (first use this function) > out/FlexLexer.h: At global scope: > out/FlexLexer.h:84: non-member function `int debug()' cannot have `const' > method qualifier > out/FlexLexer.h: In function `int debug()': > out/FlexLexer.h:84: `yy_flex_debug' undeclared (first use this function) > out/FlexLexer.h: At global scope: > out/FlexLexer.h:87: parse error before `protected' > out/FlexLexer.h:89: `int yyleng' used prior to declaration > out/FlexLexer.h:90: `int yylineno' used prior to declaration > out/FlexLexer.h:91: `int yy_flex_debug' used prior to declaration > out/FlexLexer.h:94: parse error before `}' token > out/FlexLexer.h:107: no class template named `std' in `std' > out/FlexLexer.h:107: parse error before `*' token > out/FlexLexer.h:112: no class template named `std' in `std' > out/FlexLexer.h:112: `s' was not declared in this scope > out/FlexLexer.h:112: parse error before `)' token > out/FlexLexer.h:114: no class template named `std' in `std' > out/FlexLexer.h:114: `s' was not declared in this scope > out/FlexLexer.h:114: invalid data member initialization > out/FlexLexer.h:114: (use `=' to initialize static data members) > out/FlexLexer.h:114: variable or field `yyrestart' declared void > out/FlexLexer.h:117: no class template named `std' in `std' > out/FlexLexer.h:117: `new_in' was not declared in this scope > out/FlexLexer.h:117: no class template named `std' in `std' > out/FlexLexer.h:117: `new_out' was not declared in this scope > out/FlexLexer.h:117: invalid data member initialization > out/FlexLexer.h:117: variable or field `switch_streams' declared void > out/FlexLexer.h:117: `switch_streams' declared as a `virtual' field > out/FlexLexer.h:128: no class template named `std' in `std' > out/FlexLexer.h:128: no type `istream' in `<type error>' > out/FlexLexer.h:128: parse error before `*' token > out/FlexLexer.h:143: no class template named `std' in `std' > out/FlexLexer.h:143: syntax error before `*' token > out/FlexLexer.h:144: no class template named `std' in `std' > out/FlexLexer.h:144: syntax error before `*' token > make[1]: *** [out/includable-lexer.o] Error 1 > make[1]: Leaving directory `/home/lilypond/lily' > make: *** [all] Error 2 > > Heikki Junes > > > > _______________________________________________ > Lilypond-devel mailing list > [EMAIL PROTECTED] > http://mail.gnu.org/mailman/listinfo/lilypond-devel > > _______________________________________________ Lilypond-user mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/lilypond-user