Hi

To compile Xerces C++ in Borland C++ Builder 5 standard (update package 1) I did the 
following:

1. Change file src/util/Compilers/BorlandCDefs.hpp line 88-89 to

typedef wchar_t  XMLCh;
// typedef unsigned short  XMLCh;


2. Change file src/util/Platforms/Win32/Win32PlatformUtils.cpp line 637 to:

    #if 0 //defined(_MSC_VER) || defined(__BCPLUSPLUS__)

Without this I get a warning 8002 "Restarting compile using assembly". However, this 
does not seem to work (the compiler just stops). The above method will wipe out 
Windows 95 use as stated in the source file.


3. Insert the following into file 
Projects/Win32/BCB4/Xerces-all/XercesLib/XercesLib.cpp at line 270:

USEUNIT("..\..\..\..\..\src\util\regx\RangeTokenMap.cpp");
USEUNIT("..\..\..\..\..\src\validators\schema\ComplexTypeInfo.cpp");
USEUNIT("..\..\..\..\..\src\validators\schema\SubstitutionGroupComparator.cpp");
USEUNIT("..\..\..\..\..\src\validators\schema\NamespaceScope.cpp");
USEUNIT("..\..\..\..\..\src\validators\schema\TraverseSchema.cpp");
USEUNIT("..\..\..\..\..\src\validators\schema\SchemaInfo.cpp");
USEUNIT("..\..\..\..\..\src\validators\schema\GeneralAttributeCheck.cpp");
USEUNIT("..\..\..\..\..\src\validators\schema\XUtil.cpp");
USEUNIT("..\..\..\..\..\src\validators\datatype\StringDatatypeValidator.cpp");
USEUNIT("..\..\..\..\..\src\validators\datatype\IDDatatypeValidator.cpp");
USEUNIT("..\..\..\..\..\src\validators\datatype\IDREFDatatypeValidator.cpp");
USEUNIT("..\..\..\..\..\src\validators\datatype\ENTITYDatatypeValidator.cpp");
USEUNIT("..\..\..\..\..\src\validators\datatype\NOTATIONDatatypeValidator.cpp");
USEUNIT("..\..\..\..\..\src\validators\datatype\ListDatatypeValidator.cpp");
USEUNIT("..\..\..\..\..\src\validators\datatype\BooleanDatatypeValidator.cpp");
USEUNIT("..\..\..\..\..\src\validators\datatype\DecimalDatatypeValidator.cpp");
USEUNIT("..\..\..\..\..\src\validators\datatype\HexBinaryDatatypeValidator.cpp");
USEUNIT("..\..\..\..\..\src\validators\datatype\Base64BinaryDatatypeValidator.cpp");
USEUNIT("..\..\..\..\..\src\validators\datatype\QNameDatatypeValidator.cpp");
USEUNIT("..\..\..\..\..\src\validators\datatype\UnionDatatypeValidator.cpp");
USEUNIT("..\..\..\..\..\src\util\XMLBigInteger.cpp");
USEUNIT("..\..\..\..\..\src\util\XMLBigDecimal.cpp");
USEUNIT("..\..\..\..\..\src\util\HexBin.cpp");
USEUNIT("..\..\..\..\..\src\util\Base64.cpp");
USEUNIT("..\..\..\..\..\src\util\XmlStringTokenizer.cpp");





> PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT
> ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW
> AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE
> DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL
> BE LOST SOMEWHERE.

> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2728

> *** shadow/2728Sat Jul 21 19:01:57 2001
> --- shadow/2728.tmp.20896Thu Aug  9 13:10:05 2001
> ***************
> *** 76,78 ****
> --- 76,102 ----
>   [Tasm Error] XMLUni.hpp(76): E2141 Declaration syntax error
>   [Tasm Error] XMLException.hpp(78): E2141 Declaration syntax error
>   [Tasm Error] XMLException.hpp(173): E2141 Declaration syntax error
> +
> + ------- Additional Comments From [EMAIL PROTECTED]  2001-08-09 13:10
> -------
> + I have got the same problem, but changing the type for XMLCh works quite
> well
> + for me, the whole project compiles under BCB 5 (sp2). I changed the line
> in
> + BorlandCDefs.hpp to:
> +
> + typedef wchar_t  XMLCh;
> + // typedef unsigned short  XMLCh;
> +
> + But then the linker shows up with an error message for each function
> which uses
> + the XMLCh type in its declaration, like this:
> +
> + [Linker Error] Unresolved external 'RangeTokenMap::instance()'
> referenced from
> + C:\XERCES\BUILD\WIN32\BCB4\OBJ\ASCIIRANGEFACTORY.OBJ
> +
> + [Linker Error] Unresolved external 'RangeTokenMap::addKeywordMap(const
> wchar_t
> + * const, const wchar_t * const)' referenced from
> C:\XERCES\BUILD\WIN32\BCB4
> + \OBJ\ASCIIRANGEFACTORY.OBJ
> +
> + [Linker Error] Unresolved external 'RangeTokenMap::setRangeToken(const
> wchar_t
> + * const, RangeToken * const, const bool)' referenced from
> C:\XERCES\BUILD\WIN32
> + \BCB4\OBJ\ASCIIRANGEFACTORY.OBJ
> +
> + Is there anything which can be done about that ?

> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to