Skip to content

Building a shared lib that depends on velocypack gives linking error (MSVC) #60

@gdmiron

Description

@gdmiron

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions