Xalan 1.8.0 needs source change to build with STLPort and MSVC++
----------------------------------------------------------------
Key: XALANC-563
URL: http://issues.apache.org/jira/browse/XALANC-563
Project: XalanC
Type: Improvement
Components: XalanC
Versions: 1.9
Environment: OS: Win2K (Version 5.0 Build 2195: Service Pack 4)
Compiler: Microsoft Visual C++ (32-bit C/C++ Optimizing Compiler Version
12.00.8804 for 80x86) with SP5
Xerces: 2.6.0
XalanC: 1.9.0
STLPort: 4.5.3
Reporter: Rakshit Simha
Priority: Blocker
Building the AllInOne project with STLPort includes and libs (set using
Tools->Options->Directories in VC++ GUI), many instances of this error appear:
---begin-error---
L:\bldenv-nt-v19\INCLUDE\STLPORT\stl/_algobase.h(210) : error C2784: 'struct
_STL::input_iterator_tag __cdecl _STL::iterator_category(const class
_STL::istream_iterator<_Tp,_CharT,_Traits,_Dist> &)' : could not deduce
template argument for 'const class
_STL::istream_iterator<_Tp,_CharT,_Traits,_Dist> &' from 'struct
xalanc_1_9::XalanDequeIterator<struct
xalanc_1_9::XalanDequeConstIteratorTraits<class xalanc_1_9::NameSpace>,class
xalanc_1_9::XalanDeque<class xalanc_1_9::NameSpace,struct
xalanc_1_9::ConstructWithMemoryManagerTraits<class xalanc_1_9::NameSpace> > >'
L:\bldenv-nt-v19\INCLUDE\STLPORT\stl/_algobase.h(216) : see reference
to function template instantiation 'class _STL::back_insert_iterator<class
xalanc_1_9::XalanDeque<class xalanc_1_9::NameSpace,struct
xalanc_1_9::ConstructWithMemoryManagerTraits<class xalanc_1_9::NameSpace> > >
__cdecl _STL::__copy_aux(struct xalanc_1_9::XalanDequeIterator<struct
xalanc_1_9::XalanDequeConstIteratorTraits<class xalanc_1_9::NameSpace>,class
xalanc_1_9::XalanDeque<class xalanc_1_9::NameSpace,struct
xalanc_1_9::ConstructWithMemoryManagerTraits<class xalanc_1_9::NameSpace>
>>,struct xalanc_1_9::XalanDequeIterator<struct
xalanc_1_9::XalanDequeConstIteratorTraits<class xalanc_1_9::NameSpace>,class
xalanc_1_9::XalanDeque<class xalanc_1_9::NameSpace,struct
xalanc_1_9::ConstructWithMemoryManagerTraits<class xalanc_1_9::NameSpace>
>>,class
_STL::back_insert_iterator<class xalanc_1_9::XalanDeque<class
xalanc_1_9::NameSpace,struct xalanc_1_9::ConstructWithMemoryManagerTraits<class
xalanc_1_9::NameSpace> > >,const struct _STL::__false_type &)' being compiled
---end-error---
The workaround has been to apply this change to
xml-xalan\c\src\xalanc\Include\XalanDeque.hpp:
---begin-diff---
33c33
<
---
> #include <stl/_bvector.h>
59c59
< struct XalanDequeIterator
---
> struct XalanDequeIterator : std::_Bit_iterator_base
---end-diff---
So far, the application built using this seems to be working fine.
Please confirm this modification and integrate into XalanC source (maybe
predicated upon the presence of XALANC_STLPORT_STL?).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]