Compatible Compilation Flags #2054
|
I found that to use std lib across my DLLs and EXE I needed to compile with /MTDd (multithreaded debug DLL), even my DLL that wraps your LIB. But that required I compile your LIB with /MTDd, which seems not to be the default. Are there any issues that I should be aware of using /MTDd (or the release version of DLL option build, /MD) for your LIB? |
Replies: 2 comments
|
The default is indeed linking statically, but it is trivial to change it by setting the cmake option |
|
Adding to the maintainer's answer — one caveat once Jolt is split across a DLL/EXE boundary: matching the CRT ( Their defaults differ per configuration (e.g. |
The default is indeed linking statically, but it is trivial to change it by setting the cmake option
USE_STATIC_MSVC_RUNTIME_LIBRARYtoOFF. This will require you to install the MSVC redistributables on any machine where your executable needs to run. If your application consists of DLLs then dynamically linking is the best choice.