On Monday 11 March 2024 13:14:02 LIU Hao wrote: > 在 2024-03-09 23:58, Pali Rohár 写道: > > The point is that this one change allows to have object file with > > function calls to _scprintf or _snprintf to be CRT independent. > > Let me guess, you have an object file (maybe in a static library) which was > compiled for MSVCRT (or an old variant, at least not UCRT), and you would > like to compile some code for UCRT, but to link with the aforementioned > object file, or vice versa; is that the case?
Yes, this is a good description. > I'd say code linking against different CRT variants are not compatible. > Making `_scprintf` etc. independent about the CRT by de-inlining it for > UCRT, does not solve the incompatibility. I know, but I'm trying to achieve it by small steps. For _scprintf it should fix this issue as mingw library starts providing required symbol for linking object files. Or do you see there some problem with it? _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public