duma icon indicating copy to clipboard operation
duma copied to clipboard

Add /MT to MSVC when compiling shared library

Open rsp4jack opened this issue 2 years ago • 2 comments

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)

rsp4jack avatar Apr 26 '22 05:04 rsp4jack

I plan to replicate, @Creepercdn thanks for the reports - what version of MSVC are you using?

johnsonjh avatar Apr 28 '22 17:04 johnsonjh

msvc 14.31.31103 Visual Studio 2022

rsp4jack avatar Apr 29 '22 11:04 rsp4jack