On my learning path, I was experimenting with undefined behaviour, and how GCC and Clang can handle this. I compiled a very simple test program with GCC 15.2 from WinLibs on Windows 10, and it failed to link with this error message:
There are a lot of library archive files in my installation directories under "C:\MinGW\ucrt\mingw64\x86_64-w64-mingw32\lib", but libubsan.a is not there. Shouldn't all libraries that are necessary for compiler switches like "-fsanitize=undefined" be included? Or is this expected to be in MS UCRT? Or have I done anything wrong?
On my learning path, I was experimenting with undefined behaviour, and how GCC and Clang can handle this. I compiled a very simple test program with GCC 15.2 from WinLibs on Windows 10, and it failed to link with this error message:
There are a lot of library archive files in my installation directories under "C:\MinGW\ucrt\mingw64\x86_64-w64-mingw32\lib", but libubsan.a is not there. Shouldn't all libraries that are necessary for compiler switches like "-fsanitize=undefined" be included? Or is this expected to be in MS UCRT? Or have I done anything wrong?