This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: so how to config/modify/fix(or even upgrade to higher g++ version) my gcc/g++/glibc/stdlibc++ so it will enable clocale=gnu, instead of generic?
test1.cpp:7:67: error: operator '&&' has no right operand
test1.cpp:10:2: error: #error bad glibc
On Wed, 2011-06-29 at 21:51 +0100, Jonathan Wakely wrote:
>
> #define _GNU_SOURCE 1
> #include <string.h>
> #include <locale.h>
>
> #include <features.h>
> #if (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3)) &&
> !defined(__UCLIBC__)
> #else
> #error bad glibc
> #endif
>
>
> int
> main ()
> {
> char s[128];
> __locale_t loc;
> strxfrm_l(s, "C", 5, loc);
> strerror_l(5, loc);
>
>
> return 0;
> }
>
>