Re: Errors in standard include files

Keith Marshall <[email protected]>
Newsgroups gmane.comp.gnu.mingw.user
Organization MinGW.org Project
Message-ID <[email protected]>
On 10/01/2020 13:10, Anton Shepelev wrote:
> Keith Marshall:
> 
>> FWIW, your pastebin shows only the error messages, which
>> appear to indicate that they are triggered when a
>> statement such as:
>>
>>    #include <sstream>
>>
>> is parsed within a C++ translation unit, but we see no
>> indication of which feature test macros, if any, may be in
>> scope at point of failure; just compiling that one
>> statement, in isolation:
>>
>>    $ echo '#include <sstream>' | mingw32-g++ -c -fsyntax-only -x c++ -
> 
> Excellent.  If you only add -std=c++11 the errors will be there:

I'm not seeing that, sorry.  With either -std=c++11, or -std=gnu++11,
added, that command remains completely silent.  With -std=c++03, or
-std=gnu++03, however, I do see a small number of errors, (much fewer
than your pastebin shows), all originating in GCC C++ heades, (not in
the MinGW headers), and all due to gratuitous references to functions
which are undeclared, by the MinGW headers, unless the _ISOC99_SOURCE
feature test has been enabled; (<_mingw.h> will enable it for any of
__STDC__ >= 199901L, __cplusplus >= 201103L, or _POSIX_C_SOURCE >=
200112L; I'm not sure if it should be enabled for any earlier C++ version).

>> I would further point out that you appear to be using
>> GCC-4.9.3
> 
> Can I update MinGW on Windows XP anymore?

Web security technologies have advanced, significantly, since Microsoft
pulled the plug on WinXP; it is becoming increasingly difficult to
continue supporting web access from WinXP, but the latest version of
mingw-get, (the version available from OSDN.net), does still manage to
do so.  However...

> My MinGW Installation Manager fails with what I perceive as two 
> messages:>
>    1. Cannot open URL.
>    2. Sync repository failed.
> 
> The URL in the error message is (typing from screen):
> 
>    http://prdownloads.sourceforge.net/mingw/package-list.xml.lzma?download

...this tells me that you are still using the obsolete, unmaintained
version from SF.net, which will not work; you need to reinstall
mingw-get, using the mingw-get-setup.exe tool from OSDN.net

-- 
Regards,
Keith.

Public key available from keys.gnupg.net
Key fingerprint: C19E C018 1547 DE50 E1D4 8F53 C0AD 36C6 347E 5A3F

_______________________________________________
MinGW-Users mailing list
[email protected]

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.osdn.me/mailman/listinfo/mingw-users
Also: mailto:[email protected]?subject=unsubscribe
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEwZ7AGBVH3lDh1I9TwK02xjR+Wj8FAl4YyFgACgkQwK02xjR+
Wj/fAhAAw8HbKGNR9g5YXxCKvbSEuchkOWT6ohA7tgnteXmBpLr7D75+H7vBDv64
I48Z06ItGQzEjMuO9cJUE6s1qsFWD0uA1c4WcltrRhx9Z7+IiNBfo2MA17Tn97Sn
HI4KKa7rXltK4rXg4c2gLs4fdIefoQITfdQflsYZSjar2VyTTOseG3mGtAml3Dva
3+CnmEzp6x9NWZVvFBDl6vpgklDBD0nokmZtmemGjHeaK4OncQPDAfXDBfWVmfFm
ASRO6+HJvNKYBrrn9UQqFU4mKuMY4+24K3mFvj91vp0tKxocmPOCM207l/aKPEJs
eamqWV7/oSHMP3u0LSSOVw/PBvcLzPD9ZLGpy4G2WCMBX07N8KWXDD+eXTRHPXBD
k/IdCH39gWYqhZKGA9MAwTZ50dhZgZR/aS+b/EMpqKhLAPj5kSdvwfLjBG9hmtJQ
X0dNT3acBJAenix+bdv1rmyn0eWkPPlKGHJGoqZfTQyfzBdF8/rtpGz9FXafd8Rl
aIX4XuQdOb59L/y2ArdBXOtO4cHaYKkxSiUe5UTOk2/fSMX7Fpch5QB9saK6ELEG
JijxBLCh8srqe5SIsKWUbRoSN0h/bApD3u7FSU/2JdomK0B21RPjj2LC+tYJTDCd
WYxr/vlKx2HTa347EcOvdoKZLHvE4q4/bBjuAfFA9PIcRqwbqxs=
=D72/
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.