在 2026-2-15 23:07, Pali Rohár 写道:
When we tested some C++ code which called vsnprintf() we got linking
errors. And when we moved the __ms_vsnprintf symbol from libmingwex.a to
msvcrt import library then liking error about the __ms_vsnprintf missing
symbol disappeared and linker correctly generated output binary.

By observing this behavior, my idea was that it is because of library
linking order, which is hardcoded in gcc spec file. And that it is
better if the msvcrt/ucrt import library does not call functions from
libmingwex.a library.

It sounds like that `__ms_vsnprintf()` is called in one of the mingw-w64 default libraries after libmingwex. If that happens, then such a call should be considered a bug and should be deleted.


--
Best regards,
LIU Hao

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to