You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to compile a library that links to velocypack for windows using MSVC (Visual Studio) complier but I get linking errors due to the static vs dynamic symbols mismatch.
Auto build dll exports
velocypack.lib(Version.obj) : error LNK2038: mismatch detected for'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease'in DatabaseClient.obj
Could you suggest a solution? Is there a way to build a shared lib for velocypack?
it works if one changes the linker settings in \cmake\Modules\AR_CompilerSettings.cmake from MTd to MDd and MT to MD. But I am not sure if this is the right solution.
The text was updated successfully, but these errors were encountered:
It is the correct solution. It just says, that you may not link statically against a dynamic library.
The solution is to link dynamically against the library or build the library into a static library and then statically link againt it.
I am trying to compile a library that links to velocypack for windows using MSVC (Visual Studio) complier but I get linking errors due to the static vs dynamic symbols mismatch.
Could you suggest a solution? Is there a way to build a shared lib for velocypack?
it works if one changes the linker settings in
\cmake\Modules\AR_CompilerSettings.cmake
fromMTd
toMDd
andMT
toMD
. But I am not sure if this is the right solution.The text was updated successfully, but these errors were encountered: