Hey Roger, Static builds seem broken on windows. There's this error: C:\cn\xalan-c\1.12-rc2\rwc\stable\build\99dbd0ec50a6fb8c00cb677dbfbfb9115890da29\xalan-c\src\xalanc\XalanDOM\XalanDOMInit.cpp(27,47): error C2491: 'xalanc_1_12::XalanDOMInit::s_initCounter': definition of dllimport static data member not allowed [C:\cn\xalan-c\1.12-rc2\rwc\stable\build\99dbd0ec50a6fb8c00cb677dbfbfb9115890da29\src\xalanc\xalan-c.vcxproj]
and then lots of warnings like: C:\cn\xalan-c\1.12-rc2\rwc\stable\build\99dbd0ec50a6fb8c00cb677dbfbfb9115890da29\xalan-c\src\xalanc\XalanDOM\XalanDOMImplementation.cpp(27,1): warning C4273: 'xalanc_1_12::XalanDOMImplementation::XalanDOMImplementation': inconsistent dll linkage [C:\cn\xalan-c\1.12-rc2\rwc\stable\build\99dbd0ec50a6fb8c00cb677dbfbfb9115890da29\src\xalanc\xalan-c.vcxproj] C:\cn\xalan-c\1.12-rc2\rwc\stable\build\99dbd0ec50a6fb8c00cb677dbfbfb9115890da29\xalan-c\src\xalanc\XalanDOM\XalanDOMImplementation.hpp(49,5): message : see previous definition of '{ctor}' [C:\cn\xalan-c\1.12-rc2\rwc\stable\build\99dbd0ec50a6fb8c00cb677dbfbfb9115890da29\src\xalanc\xalan-c.vcxproj] I think the problem is in DOMSupportDefinitions.hpp: #if defined(XALAN_BUILD_DLL) #define XALAN_DOMSUPPORT_EXPORT XALAN_PLATFORM_EXPORT #define XALAN_DOMSUPPORT_EXPORT_FUNCTION(T) XALAN_PLATFORM_EXPORT_FUNCTION(T) #else #define XALAN_DOMSUPPORT_EXPORT XALAN_PLATFORM_IMPORT #define XALAN_DOMSUPPORT_EXPORT_FUNCTION(T) XALAN_PLATFORM_IMPORT_FUNCTION(T) #endif I didn't fully track it down, but I don't think if you want to import if XALAN_BUILD_DLL is not defined. I assume this is used for the exe's, but of course it needs to account when building a static library as well. Again, thanks for your work! Rob ________________________________ From: Roger Leigh <rle...@codelibre.net> Sent: Sunday, May 31, 2020 6:12 AM To: xalan-...@apache.org <xalan-...@apache.org>; c-users@xalan.apache.org <c-users@xalan.apache.org> Subject: Xalan-C++ 1.12 release candidate 2 Dear all, I have tagged and made a second release candidate: https://github.com/apache/xalan-c/releases/tag/Xalan-C_1_12_0_RC2 The above link includes the release notes, links to .tar.gz and .zip archives, and the signed release tag. The full documentation is at: https://apache.github.io/xalan-c/ RC2 includes: * XALANC-807: Do not add library debug postfix unconditionally with MSVC * XALANC-799: Remove use of winres.h in XalanMsgLib.rx * A cosmetic grouping of documentation targets into a Documentation folder in Visual Studio Many thanks for everyone who tested and provided feedback for RC1. I would be grateful if you could retest with RC2 and report back if the problems are fixed. I would also be grateful if anyone who has not yet tested RC1 to take the time to test with RC2. I would like to make the final release this week, and I would appreciate if you could report back the results of testing by the end of Tuesday at the latest. Kind regards, Roger