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?

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

 



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;
> }
> 
> 



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux