Web lists-archives.com

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




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

On 09/10/16 17:27, DAVENPORT, MARC wrote:
> Clayton Weaver <mingwuser@xxxxxxxxx> wrote:
>> I got the same errors with Allegro 5. Upon trying to compile an 
>> old A5 project with -std=c++11 I got the same errors mentioned 
>> about off_t and even got errors pertaining to cwchar.h stating 
>> ::wcscat, wcscmp, and several others were not declared. For 
>> Allegro 5, for now, it appears you have to pass -std=gnu++11 to 
>> compile or use a C++ library like SFML to make games or apps.
> 
> I can confirm this. My library build using A5 and C++11 does the 
> same thing. There's also an error regarding _fsize_t being 
> undefined. My library builds using -std=gnu++11 just fine.

I guess this should be expected (correct) behaviour.

Neither off_t, nor _fsize_t, are strictly conforming ANSI types, so,
if your project uses them, you shouldn't be compiling with an option
which requires __STRICT_ANSI__ conformity checking, (as -std=c++11
does).  To enable C++11 semantics, while still allowing for use of
non-standard types, you should specify -std=gnu++11, (as you have found).

- -- 
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)

iQIcBAEBAgAGBQJX/r9cAAoJEMCtNsY0flo/KVgQAKoMYXFGFjdUeXpSkIolAQGl
LuIcsIoAhRvFAnWUXs6q5J99zJCSRrPKlmGeXhZOWEJX/MR1/iADPxupA3Pnhtsf
ZjRaCjZ+kRbKcgrp9u6m3YUeWn+fGcO1vCME9x42q+gYP/bi+OiVqWXUJ8+V2/AS
3SMzUMdhrnzB+uup3V1X10sHlTu/1ky7ieH91P0lRsFtJMSooVYYBVr6yZPUmHhz
GwLj+N0x5C+F5Ze56MXIcRzYEL7DGOGjf1TPT7kMgrVJ6vmXwadInpLrtmY9CwQ1
gxfMZGfj3UXCN/zrFct7i9z4ES3QkseIjqI3EqKSJ8DsWbNbuqb1iR6I6SiCZf2p
tpEkAj3USqELNxEM3INzSh4077Nujzs3CYVQt8wJx7ras0YpDa3eCbUunqK2vZjs
NY8P+fBDTzr3aJUzAJWdOUKkP/jg1n7UhEB1eyJik2ffKt01rrz+6QKNFQXzJF0a
yOT3F5cppOZlUUjQMOfNe3sHdOc2ifrhHJuDMNMpgXuRiMcNgRCkLYBRUZO1GH46
DA08hBNRjeFnwzHqY5OvLqVtw03oy5LNfaYbGvttdwMaY/yHBrJzFp9+BCPHvXaS
8sPVSAXg2MmKkdShDEp+h3LL6Xrc8f0VOb+H3NV5KyeSS63btFeHNwRuOFfsJu9S
PTDscLWhFyo2RIowg0t8
=V1lQ
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
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