Hi Suzanne,
You're not likely to get Xalan 1.3 to build on RedHat without changing some
of the source files. The versions of GCC we used prior to GCC 3.0 did not
have a standard library. The version of GCC shipped with RedHat 8.0 now
has a complete standard library, so the code is not compatible without a
few changes.
You can either move up to Xalan 1.5, or modify
xml-xalan/c/src/Include/GCCDefinition.hpp. If you want to modify the file,
replace these lines:
#define XALAN_NO_MEMBER_TEMPLATES
#define XALAN_RTTI_AVAILABLE
#define XALAN_OLD_STREAM_HEADERS
#define XALAN_SGI_BASED_STL
#define XALAN_XALANDOMCHAR_USHORT_MISMATCH
#define XALAN_NO_STD_ALLOCATORS
#define XALAN_POSIX2_AVAILABLE
#define XALAN_INLINE_INITIALIZATION
with these:
#if __GNUC__ < 3
#define XALAN_OLD_STREAM_HEADERS
#define XALAN_NO_MEMBER_TEMPLATES
#define XALAN_NO_STD_ALLOCATORS
#endif
// As of 3.1, std::numeric_limits<double> is broken, so
// we don't use it.
#define XALAN_NO_STD_NUMERIC_LIMITS
#define XALAN_SGI_BASED_STL
#define XALAN_XALANDOMCHAR_USHORT_MISMATCH
#define XALAN_POSIX2_AVAILABLE
#define XALAN_INLINE_INITIALIZATION
This may or may not work, but you can give it a try.
Dave
Suzanne Dirkers
<[EMAIL PROTECTED] To:
[email protected]
com> cc: (bcc: David N
Bertoni/Cambridge/IBM)
Subject: 'cerr ' unknown at RH 8
05/01/2003 07:31
AM
Hi all,
Does anybody know how to fix a problem whereby one cannot build
Xalan 1.3 on RH 8 because 'cerr' is undefined? Where did 'cerr' go in the
g++ compiler at RH 8?
Thanks,
Suzanne