lilypond-devel
[Top][All Lists]
Advanced

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

Re: Can make deb be done with gcc 3.3?


From: Jan Nieuwenhuizen
Subject: Re: Can make deb be done with gcc 3.3?
Date: 04 Jun 2003 09:44:36 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

Paul Scott <address@hidden> writes:

> (See header)
> 
> This is what I get:
> 
> rm -f ./out/getopt-long.dep;
> DEPENDENCIES_OUTPUT="./out/getopt-long.dep ./out/getopt-long.o" g++ -c
> -DHAVE_CONFIG_H  -DSTRING_UTILS_INLINED -Iinclude -I./out
> -I../flower/include -I../flower/./out -O2 -finline-functions -g
> -O2 -finline-functions -g    -Wall  -W
> -Wmissing-prototypes -Wconversion  -o out/getopt-long.o getopt-long.cc
> getopt-long.cc:22: error: parse error before `const'

That looks fishy.  Try without -O2, or with patch below.

Jan.


Index: getopt-long.cc
===================================================================
RCS file: /cvsroot/lilypond/lilypond/flower/getopt-long.cc,v
retrieving revision 1.16
diff -p -u -p -u -r1.16 getopt-long.cc
--- getopt-long.cc      24 Apr 2003 14:10:14 -0000      1.16
+++ getopt-long.cc      4 Jun 2003 07:43:09 -0000
@@ -18,11 +18,15 @@
 
 
 #if !HAVE_GETTEXT
+#ifndef gettext
 inline char*
 gettext (char const* s)
 {
   return (char*)s;
 }
+#else
+#warning huh?  we have gettext, but configure says we do not.
+#endif
 #else
 #include <libintl.h>
 #endif

-- 
Jan Nieuwenhuizen <address@hidden> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien       | http://www.lilypond.org





reply via email to

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