This is the mail archive of the
cygwin
mailing list for the Cygwin project.
c++0x and locale_t
- From: Ken Brown <kbrown at cornell dot edu>
- To: cygwin <cygwin at cygwin dot com>
- Date: Sat, 1 Oct 2016 09:30:07 -0400
- Subject: c++0x and locale_t
- Authentication-results: sourceware.org; auth=none
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