Build fails using g++ 3.4, when instantiating templates within util/RefArrayOf.c. The fix is to include framework/MemoryManager.hpp in RefArrayOf.hpp See http://nagoya.apache.org/jira/browse/XERCESC-1208 Reproducible: Always Steps to Reproduce: 1. 2. 3.
--- RefArrayOf.hpp.original 2003-05-16 08:01:52.000000000 +0200 +++ RefArrayOf.hpp 2004-11-19 18:55:15.008036000 +0100 @@ -98,6 +98,7 @@ #include <xercesc/util/ArrayIndexOutOfBoundsException.hpp> #include <xercesc/util/IllegalArgumentException.hpp> #include <xercesc/util/XMLEnumerator.hpp> +#include <xercesc/framework/MemoryManager.hpp> XERCES_CPP_NAMESPACE_BEGIN
Version 2.6 is in the tree, which compiles with >=gcc-3.4. If there is some reason this version of xerces-c is needed for a package, reopen the bug and let me know.
Resolving.