[Mingw-users] Errors in standard include files

Keith Marshall keith****@users*****
Fri Jan 10 07:45:44 JST 2020

On 09/01/2020 21:32, Anton Shepelev wrote:
> Hello, all
> When compiling dosbox-staging in MinGW, I get an avalanche
> of errors from the standard include files:
>    https://pastebin.com/raw/VrNzMqLH
> If you will so kind as to help me, what information shall I
> provide -- a minimal program that reproduces it?

At the very least, you need to show the compilation command which
produces your "avalanche of errors", together with the source code
context which triggers it.

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

I am unable to reproduce your errors, (or indeed, any diagnostic output

I would further point out that you appear to be using GCC-4.9.3, (with
undisclosed mingwrt/w32api version), which is positively antique; I ran
the above (trivial) test with:

   $ mingw32-g++ --version
   mingw32-g++ (MinGW.org Cross-GCC Build-20191117-1) 9.2.0
   Copyright (C) 2019 Free Software Foundation, Inc.
   This is free software; see the source for copying conditions.
   There is NO warranty; not even for MERCHANTABILITY or FITNESS

which is currently an experimental cross-compiler build; the currently
released MinGW build is GCC-8.2.0, with mingwrt/w32api-5.2.2


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.osdn.me/mailman/archives/mingw-users/attachments/20200109/d7ce8c54/attachment.sig>

More information about the MinGW-Users mailing list