lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Your trick to compile Lilypond on mdk 9.0


From: Heikki Johannes Junes
Subject: Re: Your trick to compile Lilypond on mdk 9.0
Date: Wed, 30 Oct 2002 00:22:12 +0200 (EET)

On 29 Oct 2002, Alexandre Aractingi wrote:

> Hi,
> I saw in the mail archives the patch you submitted to get Lilypond to
> compile on Mandrake 9.0. I have a little - maybe stupid - question: how
> do you make the changes to the lexer.cc file? When I type "make all",
> the file gets generated, but it is removed when the compilation fails.
> So I only have access to the lexer.ll file...
> Thanks for your help!
> Alex

I encountered the same problem and fixed the error in flex:

Download flex-2.5.23.tar.gz from ftp://ftp.uncg.edu/people/wlestes/

and apply the following patch, which was already sent to the maintainer of
flex and accepted by him. So, if there is flex-2.5.24.tar.gz or newer,
maybe the patch is already in.

--- gen.c~      2002-09-14 00:54:03.000000000 +0300
+++ gen.c       2002-10-26 11:59:55.000000000 +0300
@@ -2007,7 +2007,7 @@
                indent_puts ("if ( yy_act == 0 )");
                indent_up ();
                indent_puts (C_plus_plus ?
-                            "cerr << \"--scanner backing up\\n\";" :
+                            "std::cerr << \"--scanner backing up\\n\";" :
                             "fprintf( stderr, \"--scanner backing up\\n\" );");
                indent_down ();

@@ -2017,7 +2017,7 @@

                if (C_plus_plus) {
                        indent_puts
-                               ("cerr << \"--accepting rule at line \" << 
yy_rule_linenum[yy_act] <<");
+                               ("std::cerr << \"--accepting rule at line \" << 
yy_rule_linenum[yy_act] <<");
                        indent_puts
                                ("         \"(\\\"\" << yytext << 
\"\\\")\\n\";");
                }
@@ -2037,7 +2037,7 @@

                if (C_plus_plus) {
                        indent_puts
-                               ("cerr << \"--accepting default rule (\\\"\" << 
yytext << \"\\\")\\n\";");
+                               ("std::cerr << \"--accepting default rule 
(\\\"\" << yytext << \"\\\")\\n\";");
                }
                else {
                        indent_puts
@@ -2052,7 +2052,7 @@
                indent_up ();

                indent_puts (C_plus_plus ?
-                            "cerr << \"--(end of buffer or a NUL)\\n\";" :
+                            "std::cerr << \"--(end of buffer or a NUL)\\n\";" :
                             "fprintf( stderr, \"--(end of buffer or a 
NUL)\\n\" );");

                indent_down ();
@@ -2063,7 +2063,7 @@

                if (C_plus_plus) {
                        indent_puts
-                               ("cerr << \"--EOF (start condition \" << 
YY_START << \")\\n\";");
+                               ("std::cerr << \"--EOF (start condition \" << 
YY_START << \")\\n\";");
                }
                else {
                        indent_puts

      Heikki Junes





reply via email to

[Prev in Thread] Current Thread [Next in Thread]