Skip to content

why /MT for static libraries? #6

@cosminonea

Description

@cosminonea

I've got an app that is using QT and some of the Nugets. QT is built with /MD (multi-threaded dynamic library) but the static nugets are built with /MT. I want to statically link my app to the nugets and dynamically link it with QT.

This is error I get:
Error 3 error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MTd_StaticDebug' in 'someclass.obj'

Any specific reason you are using /MT for static versions of the nugets?

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