Web lists-archives.com

Re: [Mingw-users] Does MinGW not support -std=c++11 flag?




-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 20/09/16 21:39, DAVENPORT, MARC wrote:
> Okay, I'm slightly confused then. There are copies of stdlib.h and 
> wchar.h in both of those directories. Why are there C headers in 
> C++/tr1 if they don't belong there???

They aren't copies.  All MinGW headers belong in include.  Those in
c++/<version>/tr1 are stubs, provided by the GCC project; if you want
a definitive answer as to why they are there, you'll need to ask the
GCC folks, (because I am not willing to speculate).

> My confusion comes from not knowing whether tr1 is for the c++11 
> standard or not.

Strictly, no; it's a technical recommendation relating to an earlier
version of the C++ standard, but pragmatically, any provisions of it
which have been adopted should remain applicable in C++11.  That said,
I don't see the tr1 directory among the default include paths, for:

  $ mingw32-g++ -v -std=c++11 -c -xc++ /dev/null -o /dev/null

(which isn't to say that there may not be any explicit references to
it, from within headers in other directories, which do appear in the
list of default include paths).

- -- 
Regards,
Keith.

Public key available from keys.gnupg.net
Key fingerprint: C19E C018 1547 DE50 E1D4 8F53 C0AD 36C6 347E 5A3F
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)

iQIcBAEBAgAGBQJX4bA+AAoJEMCtNsY0flo/LBIQAKFcKzbUbWJjH48Ykec3lPA4
QFt3DUdPeGglLQI9ftCTDzKrr38vBFP4WpZcPaiMpU9HAkNdqg3C0Toxa93sPxpQ
L9KrINltYSlMkfEFjJr5+ChfUrs/B/sgIaPjeGQ7CdhR9fZ38UXsngKM1qLE5Rqk
SxkKwsRTmHKPTiAOdqyDqESZPFsvurPB+2qYZf1xHLvO8jH+vEmFLiLyii4JtM5w
MHcV4zVLSg4yKfgF7c0sEzo/TQaKhpq89MMFHG/ZIYe7qwVj/ZaJOynYrbh0l0XC
xxyu0riu1C3CUk8p+7ZULjwYfSMI3WLtXCAF++40OTvSvakzrBsV1Tfd8LLiYj8V
10Ha22DZgMvVBa262PLpewq9TKDjxEw0xeUSn0vGjnPkGFoOtulauzCKQOyksDjM
uQzRdMkuF2t0eX8SdBBS4zXVTF2c3fX3KG4Tc+dsk4qSYSBpTbbZF6ttd0wSFXcS
yDpE0GI4K+XKWeW49UCIPBvlaRspU8p3YVox07/kGi8L9uXUw5CWQ7NkCQldiZlP
LKvVjeBIrkak4y+H9CjLQhwyQhn0BFBuSLWKQgMj/oV27gSmnAFaVEARZfp+OfWn
IjNkXnNVDNkqdjyNRnTdb6oEOT53PAy3uNUogxwnfKOFjoP2H1a01oxrwRvYl2MQ
j+qDLEZjpjArU2s2aWu9
=kGOT
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@xxxxxxxxxxxxxxxxxxxxx?subject=unsubscribe