c++0x and locale_t

Ken Brown kbrown@cornell.edu
Sat Oct 1 14:58:00 GMT 2016


I'm having an issue building icu, which boils down to the following test 
case:

$ cat foo.cc
#include <locale.h>
locale_t foo;

$ g++ -c --std=c++0x foo.cc
foo.cc:2:1: error: ‘locale_t’ does not name a type
  locale_t foo;
  ^

If I remove '--std=c++0x', the error goes away.  I know nothing about 
C++ standards, so I don't know if this is expected behavior or if it 
indicates a bug in Cygwin's headers.

Ken

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list