public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* c++0x and locale_t
@ 2016-10-01 14:58 Ken Brown
  2016-10-01 15:52 ` Brian Inglis
  0 siblings, 1 reply; 3+ messages in thread
From: Ken Brown @ 2016-10-01 14:58 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-10-02 15:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-01 14:58 c++0x and locale_t Ken Brown
2016-10-01 15:52 ` Brian Inglis
2016-10-02 17:59   ` Ken Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).