x86_64-w64-mingw32 test FAIL t-scanf.c:1477: GNU MP assertion failed: ret == (-1)

Niels Möller nisse at lysator.liu.se
Thu Apr 6 15:12:22 UTC 2017


tg at gmplib.org (Torbjörn Granlund) writes:

> It is not completely obvious to me that one can link things together
> where some parts want to compliant stdio and some other parts want a
> non-compliant stdio.

I don't really know how that magic works, but my guess guess is that
it's per compilation unit, so "printf" in the source code will refer to
one of two different functions depending on which magic preprocessor
symbols were defined when stdio.h was parsed. (Which then might violate
C standard rules on function pointer comparison...)

Anyway, I don't think we can try to force any windows program linking
with gmp to define __USE_MINGW_ANSI_STDIO in each and every compilation
unit, so I hope things will work well enough with a mix.

Regards,
/Niels

-- 
Niels Möller. PGP-encrypted email is preferred. Keyid 368C6677.
Internet email is subject to wholesale government surveillance.


More information about the gmp-bugs mailing list