19 Jan
2026
19 Jan
'26
3:37 p.m.
On Mon Jan 19 15:35:26 2026 +0000, Yuxuan Shui wrote:
Yeah, if CRT functions were in winecrt0, then they could take precedence over imported ones. ~~as long as the code being linked uses anything from msvcrt, its implib will be pulled in and `winecrt0` will get the version from msvcrt. i think that should cover most of the dlls/exes.~~ ah, no, foiled by link order again. crt comes _after_ winecrt0 in most linker arguments, so winecrt0 will take precedence.
in that case I'd say `winecrtend` is probably the best solution if you still want to use the initterm from msvcrt when possible. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/9265#note_127331