Add /MT to MSVC when compiling shared library
rsp4jack opened this issue · comments
rsp4jack commented
When compiling the shared library of DUMA with default /MD, it will raise LNK4006 error. (I forgot the error message... Maybe strcat or something in C runtime library)
I set /MT, and it compiles successfully. But that may raise error when link with an application with /MD.
Notice: Set /MT or /MD to every subproject in the project (such as stacktrace library, see #184)
Jeffrey H. Johnson commented
I plan to replicate, @Creepercdn thanks for the reports - what version of MSVC are you using?
rsp4jack commented
msvc 14.31.31103
Visual Studio 2022