Hello.
I am working with Microsoft VC++ 6.0 SP 5.
I use Xerces in my project and it works well. When I try to use Xalan, even
if I think I installed everything as it should be I get some compile errors
when I include file
#include <XalanTransformer/XalanTransformer.hpp>
The errors are all from the C++ library in files new and memory.
Most of them are unreal, for example there is no such identifier as
'THIS_FILE' at the line 35 in the "new" file.
Errors are listed below.
Thank you for any help.
Sergiu
c:\program files\microsoft visual studio\vc98\include\new(35) : error C2061:
syntax error : identifier 'THIS_FILE'
c:\program files\microsoft visual studio\vc98\include\new(35) : error C2091:
function returns function
c:\program files\microsoft visual studio\vc98\include\new(35) : error C2809:
'operator new' has no formal parameters
c:\program files\microsoft visual studio\vc98\include\new(36) : error C2061:
syntax error : identifier 'THIS_FILE'
c:\program files\microsoft visual studio\vc98\include\new(37) : error C2091:
function returns function
c:\program files\microsoft visual studio\vc98\include\new(37) : error C2556:
'void *(__cdecl *__cdecl operator new(void))(unsigned int,const struct
std::nothrow_t &)' : overloaded function differs only by return type from
'void *(__cdecl *__cdecl op
erator new(void))(unsigned int)'
c:\program files\microsoft visual studio\vc98\include\new(35) : see
declaration of 'new'
c:\program files\microsoft visual studio\vc98\include\memory(16) : error
C2061: syntax error : identifier 'THIS_FILE'
c:\program files\microsoft visual studio\vc98\include\memory(17) : error
C2091: function returns function
c:\program files\microsoft visual studio\vc98\include\memory(17) : error
C2784: 'void *(__cdecl *__cdecl operator new(void))(unsigned int,class
std::allocator<`template-parameter257'> &)' : could not deduce template
argument for 'void *(__cdecl *)(u
nsigned int,class std::allocator<_Ty> &)' from 'void *(__cdecl *)(unsigned
int)'
c:\program files\microsoft visual studio\vc98\include\memory(17) : error
C2785: 'void *(__cdecl *__cdecl operator new(void))(unsigned int,class
std::allocator<`template-parameter257'> &)' and 'void *(__cdecl *__cdecl
operator new(void))(unsigned int
)' have different return types
c:\program files\microsoft visual studio\vc98\include\memory(16) :
see declaration of 'new'
c:\program files\microsoft visual studio\vc98\include\memory(17) : error
C2809: 'operator new' has no formal parameters
c:\program files\microsoft visual studio\vc98\include\memory(20) : error
C2954: template definitions cannot nest