[ https://issues.apache.org/jira/browse/XERCESC-2137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16365564#comment-16365564 ]
Scott Morgan commented on XERCESC-2137: --------------------------------------- Debug build of Xerces under Visual Studio don't work without them. VC++/MFC uses some alternate memory operators in that mode which is covered by that XERCES_MFC_SUPPORT define. It's a pretty easy fix: [^mfc_debug_cmake.patch] > CMake Build Doesn't Activate XERCES_MFC_SUPPORT > ----------------------------------------------- > > Key: XERCESC-2137 > URL: https://issues.apache.org/jira/browse/XERCESC-2137 > Project: Xerces-C++ > Issue Type: Bug > Components: Build > Environment: MS Visual Studio > Reporter: Scott Morgan > Priority: Major > Attachments: mfc_debug_cmake.patch > > > The XERCES_MFC_SUPPORT define is needed for Visual Studio debug builds, it > activates some code in XMemory.hpp/cpp > Should just be a case of detecting MSVC in the main CMakeLists.txt and adding > a '#cmakedefine XERCES_MFC_SUPPORT' line in > Xerces_autoconf_config.hpp.cmake.in -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org For additional commands, e-mail: c-dev-h...@xerces.apache.org