You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xalan.apache.org by Olaf <op...@gmx.de> on 2007/07/11 09:26:05 UTC

svn trunk compile errors on msvc2005/windows

Hi,

I try to compile Xalan-X from the svn trunk directory () using MS VC
2005 (Express). Xerces-C (svn trunk) builds successfully.

My VC Express Installation is working (SDK is installed etc., xerces
compiled successfully). XERCESROOT env is set, even if this isn't
releveant for this error here.

Well, the following errors occour:

------ Erstellen gestartet: Projekt: AllInOne, Konfiguration: Debug
Win32 ------
Kompilieren...
StdBinInputStream.cpp
d:\temp\build\xalanc-c-svn-trunk\src\xalanc\platformsupport\StdBinInputStream.hpp(85)
: error C2555: 'xalanc_1_10::StdBinInputStream::curPos': Der
überschreibende virtuelle Funktionsrückgabetyp unterscheidet sich und
ist keine 'covariant' von 'xercesc_3_0::BinInputStream::curPos'
        C:\Cpp\include\xercesc/util/BinInputStream.hpp(41): Siehe
Deklaration von 'xercesc_3_0::BinInputStream::curPos'
XalanToXercesTranscoderWrapper.cpp
..\..\..\..\src\xalanc\PlatformSupport\XalanToXercesTranscoderWrapper.cpp(93)
: error C2664: 'xercesc_3_0::XMLTranscoder::transcodeTo': Konvertierung
des Parameters 5 von 'xalanc_1_10::XalanOutputTranscoder::size_type' in
'XMLSize_t &' nicht möglich
..\..\..\..\src\xalanc\PlatformSupport\XalanToXercesTranscoderWrapper.cpp(128)
: error C2664: 'xercesc_3_0::XMLTranscoder::transcodeFrom':
Konvertierung des Parameters 5 von
'xalanc_1_10::XalanOutputTranscoder::size_type' in 'XMLSize_t &' nicht
möglich
XSLTInputSource.cpp
d:\Temp\build\xalanc-c-svn-trunk\src\xalanc/PlatformSupport/StdBinInputStream.hpp(85)
: error C2555: 'xalanc_1_10::StdBinInputStream::curPos': Der
überschreibende virtuelle Funktionsrückgabetyp unterscheidet sich und
ist keine 'covariant' von 'xercesc_3_0::BinInputStream::curPos'
        C:\Cpp\include\xercesc/util/BinInputStream.hpp(41): Siehe
Deklaration von 'xercesc_3_0::BinInputStream::curPos'
..\..\..\..\src\xalanc\XSLT\XSLTInputSource.cpp(252) : error C2259:
'xalanc_1_10::StdBinInputStream': Instanz von abstrakter Klasse kann
nicht erstellt werden
        aufgrund folgender Member:
        "XMLSize_t xercesc_3_0::BinInputStream::readBytes(XMLByte *const
,const XMLSize_t)": ist abstrakt
        C:\Cpp\include\xercesc/util/BinInputStream.hpp(44): Siehe
Deklaration von 'xercesc_3_0::BinInputStream::readBytes'
Code wird generiert...
Das Buildprotokoll wurde unter
"file://d:\Temp\build\xalanc-c-svn-trunk\Build\Win32\VC8\Debug\AllInOne\BuildLog.htm"
gespeichert.
AllInOne - 5 Fehler, 0 Warnung(en)
------ Erstellen gestartet: Projekt: XalanExe, Konfiguration: Debug
Win32 ------
Kompilieren...
XalanExe.cpp
Manifest in Ressourcen wird kompiliert...
Verknüpfen...
LINK : fatal error LNK1104: Datei
"..\..\..\..\build\win32\vc8\debug\xalan-c_1d.lib" kann nicht geöffnet
werden.
Das Buildprotokoll wurde unter
"file://d:\Temp\build\xalanc-c-svn-trunk\Build\Win32\VC8\Debug\XalanExe\BuildLog.htm"
gespeichert.
XalanExe - 1 Fehler, 0 Warnung(en)
========== Erstellen: 0 erfolgreich, Fehler bei 2, 2 aktuell, 0
übersprungen ==========

Unfortunately the messages are in German (BTW, any idea how to get
english ones?)

Here are the specific links of the error numbers:
C2664: http://msdn2.microsoft.com/en-us/library/ke3es672(vs.80).aspx
C2259: http://msdn2.microsoft.com/en-us/library/zxt206sk(VS.80).aspx
C2664: http://msdn2.microsoft.com/en-us/library/s5b150wd(VS.80).aspx

Does exist a solution for this?

Thanks
Olaf


Re: svn trunk compile errors on msvc2005/windows

Posted by David Bertoni <db...@apache.org>.
Olaf wrote:
> David Bertoni schrieb:
>>> I try to compile Xalan-X from the svn trunk directory () using MS VC
>>> 2005 (Express). Xerces-C (svn trunk) builds successfully.
> [...]
>>> Unfortunately the messages are in German (BTW, any idea how to get
>>> english ones?)
>>>
>>> Here are the specific links of the error numbers:
>>> C2664: http://msdn2.microsoft.com/en-us/library/ke3es672(vs.80).aspx
>>> C2259: http://msdn2.microsoft.com/en-us/library/zxt206sk(VS.80).aspx
>>> C2664: http://msdn2.microsoft.com/en-us/library/s5b150wd(VS.80).aspx
>>>
>>> Does exist a solution for this?
>> I will be checking in a fix for this today.  There were changes to
>> Xerces-C that were checked in recently that caused these errors.
>>
>> You should be aware that the trunk of the Xerces-C repository is not
>> stable right now, as many changes like this are being committed.
>>
>>
> Yep, unfortunately the archive Xalan-C_1_10_0-src.zip from
> xml.apache.org's website doesn't compile as well using the MS VS8.0
> Compiler. Google's results suggest to use the svn version. Anyway, which
> svn branch/version can be compiled using msvc2005? If you wish, I can
> report the compiler errors with the archive download version.
I committed the fixes yesterday evening, so if you update your source code, 
it should compile.

Note that the head of the Xalan-C repository will only build at this point 
with the head of the Xerces-C repository.

Dave

Re: svn trunk compile errors on msvc2005/windows

Posted by Olaf <op...@gmx.de>.
David Bertoni schrieb:
>> I try to compile Xalan-X from the svn trunk directory () using MS VC
>> 2005 (Express). Xerces-C (svn trunk) builds successfully.
[...]
>> Unfortunately the messages are in German (BTW, any idea how to get
>> english ones?)
>>
>> Here are the specific links of the error numbers:
>> C2664: http://msdn2.microsoft.com/en-us/library/ke3es672(vs.80).aspx
>> C2259: http://msdn2.microsoft.com/en-us/library/zxt206sk(VS.80).aspx
>> C2664: http://msdn2.microsoft.com/en-us/library/s5b150wd(VS.80).aspx
>>
>> Does exist a solution for this?
> I will be checking in a fix for this today.  There were changes to
> Xerces-C that were checked in recently that caused these errors.
>
> You should be aware that the trunk of the Xerces-C repository is not
> stable right now, as many changes like this are being committed.
>
>
Yep, unfortunately the archive Xalan-C_1_10_0-src.zip from
xml.apache.org's website doesn't compile as well using the MS VS8.0
Compiler. Google's results suggest to use the svn version. Anyway, which
svn branch/version can be compiled using msvc2005? If you wish, I can
report the compiler errors with the archive download version.

Thanks,
Olaf



Re: svn trunk compile errors on msvc2005/windows

Posted by David Bertoni <db...@apache.org>.
Olaf wrote:
> Hi,
> 
> I try to compile Xalan-X from the svn trunk directory () using MS VC
> 2005 (Express). Xerces-C (svn trunk) builds successfully.
> 
> My VC Express Installation is working (SDK is installed etc., xerces
> compiled successfully). XERCESROOT env is set, even if this isn't
> releveant for this error here.
> 
> Well, the following errors occour:
> 
> ------ Erstellen gestartet: Projekt: AllInOne, Konfiguration: Debug
> Win32 ------
> Kompilieren...
> StdBinInputStream.cpp
...

> 
> Unfortunately the messages are in German (BTW, any idea how to get
> english ones?)
> 
> Here are the specific links of the error numbers:
> C2664: http://msdn2.microsoft.com/en-us/library/ke3es672(vs.80).aspx
> C2259: http://msdn2.microsoft.com/en-us/library/zxt206sk(VS.80).aspx
> C2664: http://msdn2.microsoft.com/en-us/library/s5b150wd(VS.80).aspx
> 
> Does exist a solution for this?
I will be checking in a fix for this today.  There were changes to
Xerces-C that were checked in recently that caused these errors.

You should be aware that the trunk of the Xerces-C repository is not stable 
right now, as many changes like this are being committed.

Dave