Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-2128

VS2017 creates static lib as output whilst linking against DLL runtime

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 3.2.0
    • None
    • Build
    • None
    • Windows 7, Visual Studio 2017, CMake 3.10.1

    Description

      The solution created by CMake (setting BUILD_SHARED_LIBS to OFF) contains xerces-c project that has an configuration type "Static library (.lib)" yet the setting for Code generation is set to Multi-threaded DLL (/MD).

      When using this .lib I now get linker errors like these:
      1>xerces-c_3D.lib(IC_Key.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MTd_StaticDebug' in DMActiveParticipant.obj

      Should the static building not use the Multi-threaded runtime? (/MT)

      Attachments

        Activity

          People

            Unassigned Unassigned
            MrFrank Frank Kaaijk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: