You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by bu...@apache.org on 2001/07/22 04:01:57 UTC
[Bug 2728] New: - Borland C++ Builder 5.0 Compile Error
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2728
*** shadow/2728 Sat Jul 21 19:01:56 2001
--- shadow/2728.tmp.17844 Sat Jul 21 19:01:57 2001
***************
*** 0 ****
--- 1,78 ----
+ +============================================================================+
+ | Borland C++ Builder 5.0 Compile Error |
+ +----------------------------------------------------------------------------+
+ | Bug #: 2728 Product: Xerces-C++ |
+ | Status: NEW Version: 1.5 |
+ | Resolution: Platform: PC |
+ | Severity: Critical OS/Version: Windows 9x |
+ | Priority: Other Component: Build |
+ +----------------------------------------------------------------------------+
+ | Assigned To: xerces-c-dev@xml.apache.org |
+ | Reported By: nshi@163.com |
+ | CC list: Cc: |
+ +----------------------------------------------------------------------------+
+ | URL: |
+ +============================================================================+
+ | DESCRIPTION |
+ I want to compile the Xerces-C-1.5 with BCB 5.0 compiler, but the following
+ errors are shown.
+
+ [C++ Error] Win32PlatformUtils.cpp(319): E2034 Cannot convert 'const unsigned
+ short *' to 'const wchar_t *'
+ [C++ Error] Win32PlatformUtils.cpp(319): E2342 Type mismatch in
+ parameter 'lpFileName' (wanted 'const wchar_t *', got 'const unsigned short *')
+ [C++ Error] Win32PlatformUtils.cpp(424): E2034 Cannot convert 'const unsigned
+ short * const' to 'const wchar_t *'
+ [C++ Error] Win32PlatformUtils.cpp(424): E2342 Type mismatch in
+ parameter 'lpFileName' (wanted 'const wchar_t *', got 'const unsigned short *')
+ [C++ Error] Win32PlatformUtils.cpp(424): E2034 Cannot convert 'unsigned short
+ *' to 'wchar_t *'
+ [C++ Error] Win32PlatformUtils.cpp(424): E2342 Type mismatch in
+ parameter 'lpBuffer' (wanted 'wchar_t *', got 'unsigned short *')
+ [C++ Error] Win32PlatformUtils.cpp(424): E2034 Cannot convert 'unsigned short *
+ *' to 'wchar_t * *'
+ [C++ Error] Win32PlatformUtils.cpp(424): E2342 Type mismatch in
+ parameter 'lpFilePart' (wanted 'wchar_t * *', got 'unsigned short * *')
+ [C++ Warning] Win32PlatformUtils.cpp(429): W8004 'namePart' is assigned a value
+ that is never used
+ [C++ Warning] Win32PlatformUtils.cpp(640): W8002 Restarting compile using
+ assembly
+ [C++ Error] Win32PlatformUtils.cpp(319): E2034 Cannot convert 'const unsigned
+ short *' to 'const wchar_t *'
+ [C++ Error] Win32PlatformUtils.cpp(319): E2342 Type mismatch in
+ parameter 'lpFileName' (wanted 'const wchar_t *', got 'const unsigned short *')
+ [C++ Error] Win32PlatformUtils.cpp(424): E2034 Cannot convert 'const unsigned
+ short * const' to 'const wchar_t *'
+ [C++ Error] Win32PlatformUtils.cpp(424): E2342 Type mismatch in
+ parameter 'lpFileName' (wanted 'const wchar_t *', got 'const unsigned short *')
+ [C++ Error] Win32PlatformUtils.cpp(424): E2034 Cannot convert 'unsigned short
+ *' to 'wchar_t *'
+ [C++ Error] Win32PlatformUtils.cpp(424): E2342 Type mismatch in
+ parameter 'lpBuffer' (wanted 'wchar_t *', got 'unsigned short *')
+ [C++ Error] Win32PlatformUtils.cpp(424): E2034 Cannot convert 'unsigned short *
+ *' to 'wchar_t * *'
+ [C++ Error] Win32PlatformUtils.cpp(424): E2342 Type mismatch in
+ parameter 'lpFilePart' (wanted 'wchar_t * *', got 'unsigned short * *')
+ [C++ Warning] Win32PlatformUtils.cpp(429): W8004 'namePart' is assigned a value
+ that is never used
+
+ After Change the XMLCh define in 'BorlandCDefs.hpp' as follow:
+ typedef wchar_t XMLCh;
+ // typedef unsigned short XMLCh;
+
+ The following Error is shown:
+
+ typedef wchar_t XMLCh;
+ // typedef unsigned short XMLCh;
+
+ [C++ Warning] Win32PlatformUtils.cpp(640): W8002 Restarting compile using
+ assembly
+ [Tasm Warning] XMLScanner.cpp(2104): W8004 'acceptXMLDecl' is assigned a value
+ that is never used
+ [Tasm Warning] XMLScanner.cpp(3131): W8004 'gotAttrs' is assigned a value that
+ is never used
+ [Tasm Error] BorlandCDefs.hpp(88): E2257 , expected
+ [Tasm Error] XMLExceptMsgs.hpp(6): E2141 Declaration syntax error
+ [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
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org