Open k1gen opened 10 months ago
@DreamSoule?
using the LLVM compiler may lead to certain features that are available in MSVC not functioning properly. To my knowledge, in LLVM 16, std::once_flag cannot be used, but it is now available in LLVM 17.
this code compiles fine with mingw-w64-gcc, and with vanilla llvm 17.0.2, but not with ollvm 17.0.2. what can I do?
you can try disabling some obfuscation to pinpoint which obfuscation feature is causing the exception.
only when I remove all the -mllvm options and -flto-visibility-public-std, I get a different error: https://paste.rs/CPkol.txt
you sure have WinMain function ?
I'm not sure if I do, but I have headers with definition (/usr/x86_64-w64-mingw32/include/winbase.h & /usr/x86_64-w64-mingw32/include/tchar.h)
https://paste.rs/EmjQG.txt vanilla llvm 17.0.2 works