In file msvcrt.def.in is mentioned that symbol __p__iob is provided by mingw-w64 emulation. But it is not yet. Functions __p__iob() and __iob_func() returns same pointer to first member of _iob[] array, so define __p__iob symbol for non-i386 builds as alias to __iob_func symbol. Symbol __iob_func is present in all non-i386 versions of msvcrt.dll library. --- mingw-w64-crt/lib-common/msvcrt.def.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mingw-w64-crt/lib-common/msvcrt.def.in b/mingw-w64-crt/lib-common/msvcrt.def.in index a20dbbfd4af4..2da6ffdf4632 100644 --- a/mingw-w64-crt/lib-common/msvcrt.def.in +++ b/mingw-w64-crt/lib-common/msvcrt.def.in @@ -482,7 +482,7 @@ F_I386(__p__dstbias) F_I386(__p__environ) ; x64 __p__environ provided by emu F_I386(__p__fileinfo) F_I386(__p__fmode) ; x64, arm32 and arm64 __p__fmode provided by emu -F_I386(__p__iob) ; x64, arm32 and arm64 __p__iob provided by emu +__p__iob F_NON_I386(== __iob_func) ; x64, arm32 and arm64 __p__iob provided by alias F_I386(__p__mbctype) ; x64, arm32 and arm64 __p__mbctype provided by emu F_I386(__p__osver) F_I386(__p__pctype) ; x64, arm32 and arm64 __p__pctype provided by emu -- 2.20.1 _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public