On Tue Feb 3 15:56:21 2026 +0000, Yuxuan Shui wrote:
not sure why i am getting undefined symbols on llvm-mingw, it definitely [defines these symbols](https://github.com/llvm/llvm-project/blob/main/lld/COFF/Writer.cpp#L2455) It only does this when the linker is running in mingw mode, see https://github.com/llvm/llvm-project/blob/main/lld/COFF/Writer.cpp#L1308-L13.... If invoked through the mingw style `ld.lld` interface (when invoked through the compiler), it prints error messages with a `ld.lld` prefix (since https://github.com/llvm/llvm-project/commit/1c8bb625b716b647206bcf5f51ac1c35...), while it prints `lld-link` if invoked that way. In `lld-link` mode, it doesn't define such mingw specifics, unless you pass the `-lldmingw` option.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/9758#note_128719