johnsonjh / duma

duma: Detect Unintended Memory Access (D.U.M.A.) - A Red-Zone memory allocator
https://github.com/johnsonjh/duma
GNU General Public License v2.0
99 stars 10 forks source link

Add /MT to MSVC when compiling shared library #186

Open rsp4jack opened 2 years ago

rsp4jack commented 2 years ago

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)

johnsonjh commented 2 years ago

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

rsp4jack commented 2 years ago

msvc 14.31.31103 Visual Studio 2022