Uploaded image for project: 'XalanC'
  1. XalanC
  2. XALANC-566

Wrong export/import directive for XalanMemMgrs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.9
    • 1.10
    • XalanC
    • None
    • Windows XP, Visual Studio .NET 7.1

    Description

      The definition of the class XalanMemMgrs did not contains the good export/import directive. XALAN_PLATFORM_EXPORT is used instead of XALAN_DOMSUPPORT_EXPORT. Including <xalanc/DOMSupport/DOMSupportDefinitions.hpp> is required.

      I discovered this bug while compiling a static library with Visual Studio .Net 7.1. My static library links with the import libs xalan*.lib and xerces*.lib (version nomenclature omitted to not report wrong filenames; using xalan 1.9 and xerces 2.6). Before applying the above solution, I've got warnings LNK4006 from the linker. The compiler's generated operator=() of class XalanMemMgrs was reported as "already defined". When applying the above solution, warnings disappear.

      Attachments

        Activity

          People

            Unassigned Unassigned
            boutchitos Martin Boucher
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: