lilypond-devel
[Top][All Lists]
Advanced

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

Re: Building from CVS with gcc 3.2 on Debian Sid


From: Graham Percival
Subject: Re: Building from CVS with gcc 3.2 on Debian Sid
Date: Sat, 07 Jun 2003 20:18:51 -0700

On Sat, 07 Jun 2003 20:11:01 -0700
Paul Scott <address@hidden> wrote:
> getopt-long.cc: In function `char* dcgettext(...)':
> getopt-long.cc:24: `s' undeclared (first use this function)

Are you sure you're building with gcc 3.2?  This is the error that we
saw with gcc 3.3; Jan supplied a patch for it.

> inline char*
> gettext (char const* s)
> {
>   return (char*)s;
> }
> #else
> #include <libintl.h>
> #endif

(results of the patch)
Replace that section with this:

-----
#if !HAVE_GETTEXT
#ifndef gettext
inline char*
gettext (char const* s)
{
  return (char*)s;
}
#else
#warning huh?
#endif
#else
#include <libintl.h>
#endif
-----

It should work now.

Cheers,
- Graham




reply via email to

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