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 Keith Ansell <ke...@edp.fastfreenet.com> on 2007/05/24 12:00:39 UTC

xerces 2.7.0

Hello,

                Can you help we are using Xerces-c 2.7.0 and we help ported
the source to IBM AIX 5.3 with xlC V8.0 

 

                When we compile our application we get the following error.

 

 

**** e|d|p - Make UniVision in /home/edpr/UniV.xml ****

**** The selected compiler file is `muv.ibm52' ****

**** Port - ibm ****

**** Compiler selected - xlC ****

**** Link selected - static ****

Debugger option selected

 

Use GNU Bison

UniVision 2006;9;1;0;2;0;Thu May 24 10:51:37 BST 2007

 

[53] **** Make NewStrings. ****

Target "Newstring" is up to date.

[52] **** Make Global functions. ****

Target "Globals" is up to date.

[51] **** Make xml functions. ****

      xlC -qsrcmsg -D__UVRS6000__ -I/home/edpr/UniV.xml/globals/include
-D__ibm__=52 -I/home/edpr/UniV.xml/Port/allports/include
-I/home/edpr/UniV.xml/Port/ibm/include -qnoopt -qnoinline -g -c
xercesInit.cpp

"/usr/include/ctype.h", line 87.25: 1540-1172 (S) More than one function
"toupper" has non-C++ linkage.

"/usr/include/xercesc/util/Compilers/CSetDefs.hpp", line 110.13: 1540-0425
(I) "toupper" is defined on line 110 of
"/usr/include/xercesc/util/Compilers/CSetDefs.hpp".

"/usr/include/ctype.h", line 88.25: 1540-1172 (S) More than one function
"tolower" has non-C++ linkage.

"/usr/include/xercesc/util/Compilers/CSetDefs.hpp", line 117.13: 1540-0425
(I) "tolower" is defined on line 117 of
"/usr/include/xercesc/util/Compilers/CSetDefs.hpp".

make: The error code from the last command is 1.

 

 

Stop.

xml functions. 'make' failed

 

 

The problem seems to be iostreams and xercesc toupper functions.

 

test.cpp

#include <xercesc/util/PlatformUtils.hpp>

XERCES_CPP_NAMESPACE_USE

#include <iostream>

int main(int argc, char *argv[]) {

      return 0;

}

 

 

When this example is complied with xlC we get the following error.

 

xlC test.cpp 

 

"/usr/include/ctype.h", line 87.25: 1540-1172 (S) More than one function
"toupper" has non-C++ linkage.

"/usr/include/xercesc/util/Compilers/CSetDefs.hpp", line 110.13: 1540-0425
(I) "toupper" is defined on line 110 of
"/usr/include/xercesc/util/Compilers/CSetDefs.hpp".

"/usr/include/ctype.h", line 88.25: 1540-1172 (S) More than one function
"tolower" has non-C++ linkage.

"/usr/include/xercesc/util/Compilers/CSetDefs.hpp", line 117.13: 1540-0425
(I) "tolower" is defined on line 117 of
"/usr/include/xercesc/util/Compilers/CSetDefs.hpp".

                

 

Regards

 

Keith Ansell 

Project Manager

EDP PLC

 

Direct Dial +44 (0) 1908 249732 | Direct Fax +44 (0) 1908 690069 | Email
<ma...@edp.fastfreenet.com> keitha@edp.fastfreenet.com

Visit our website at  <http://www.edp.co.uk/> www.edp.co.uk to find out more
about how the EDP Group can help your Company.

Registered Office | Beauchief Hall | Sheffield | South Yorkshire |S8 7BA |
Tel +44 (0) 114 2621621 | Fax +44 (0) 114 2621126 | Registered Number 853560

Confidentiality Notice: This email is intended for the addressee named above
and may contain information that is privileged, confidential or otherwise
protected from disclosure. If you are not the intended recipient then you
must not copy it, forward it, use it for any purpose, or disclose it to
another person. Instead, please return to the sender immediately and delete
the email from your system. The EDP Group of Companies undertakes their own
virus checks. We do not accept responsibility for any viruses transmitted
with this email and it is the recipient's responsibility to carry out such
virus or other checks as are considered appropriate.

............................................................................
............................................................................
.............................................