You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Christian Aberger <Ch...@Aberger.at> on 2001/03/04 14:23:45 UTC

Compile errors with latest Dirkumware VC++ STL library

Dear Developers !

I did not manage to report this bug with the bugzilla, so sorry, I place it
here and hope the report won't get lost. 

When I try to compile Xalan-C_1_1-win32.zip with the Dirkumware VC++ stl
fixes (as recommended by the link on your web - page) and SP4 (Dirkumware
recommends to use the latest SP for VC++), then I get 2 compiler errors. It
does compile with old VC++ stl with only some 4000 warnings (I know these
warnings are because of the old version of stl that M$ ships).

Ok, I could fix these 2 compile errors, but what shocked me when working
around this problem is the following code sequence that I have read, I think
only from looking at it (I did not debug it) you can see that the iterator
seems to be incorrect !??!. 

in \xml-xalan\c\src\PlatformSupport, AttributeListImpl&
AttributeListImpl::operator=(const AttributeListImpl& theRHS)  line 160:

--------------
			const const_iterator	theEnd =
theRHS.m_AttributeVector.begin();

			// Copy the vector entries, and build the index
map...
			for(const_iterator i =
theRHS.m_AttributeVector.end(); i != theEnd; ++i)
---------------


isn't it a copy&paste error ? Should it either be --i or iteration from
begin() to  end() ? 



P.S.: I am delighted about the first version of xalan, hope I get this one
work soon !

wfR ChrisA