Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-12013

Do not ship C++ driver binary on Windows.

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.5.5
    • 2.5.4
    • Internal Client
    • None
    • ALL

    Description

      Shipping a compiled C++ DLL that returns or consumes STL types (e.g., std::string) risks violating the one-definition rule. Further, Windows DLLs do not under all circumstances uses the same heap as the host process.

      To maximize the likelihood that the DLL works for an application, users should build their own. We should provide all the source and easy-to-follow instructions, along with a caveat emptor that the DLL is not fully general, and should be built with the same toolchain as the client application.

      Attachments

        Activity

          People

            mark.benvenuto@mongodb.com Mark Benvenuto
            schwerin@mongodb.com Andy Schwerin
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: