johnsonjh / duma

duma: Detect Unintended Memory Access (D.U.M.A.) - A Red-Zone memory allocator

Home Page:https://github.com/johnsonjh/duma

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add /MT to MSVC when compiling shared library

rsp4jack opened this issue · 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)

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

msvc 14.31.31103
Visual Studio 2022