On Wed, 22 Jun 2022, Luca Bacci wrote:
As per the title, say I compile a static library archive using
mingw-w64-ucrt, can I use that archive with mingw-w64-msvcrt? (or viceversa)
Indeed, as Biswapriyo said, in general, you can't mix.
In practice, mixing them does work in many cases (so if you try, you might
not notice immediately), but in general it can't be relied on and assumed
to work.
If interop is not supported, is there a way to determine if gcc is
compiling for MSVCRT or UCRT, e.g. using a macro?
If you include a CRT header, "_UCRT" is defined if the headers target
UCRT.
// Martin
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public