[xsd-users] Error compiling char-utf8.txx with Solaris Studio 12.4 c++11

Bernie Harris Bernard.T.Harris at nasa.gov
Wed Apr 6 11:00:26 EDT 2016


Xerces-C++ was originally compile with Sun CC but not with -std=c++11.  
When I re-configured and re-made it with c++11,
gmake check
fails with a bunch of core files.  Using c++11 is not going to be easy.

Besides the xerces and linking issues, I also ran into this
> "/usr/local/xsd-4.0.0-i686-solaris/examples/../libxsd/xsd/cxx/tree/types.txx", 
> line 447: Error: Narrowing conversion of 'int' value to 'unsigned 
> char' is not allowed here.
> "/usr/local/xsd-4.0.0-i686-solaris/examples/../libxsd/xsd/cxx/tree/serialization.txx", 
> line 721:     Where: While instantiating 
> "xsd::cxx::tree::hex_binary<char, xsd::cxx::tree::simple_type<char, 
> xsd::cxx::tree::_type>>::encode() const".
> "/usr/local/xsd-4.0.0-i686-solaris/examples/../libxsd/xsd/cxx/tree/serialization.txx", 
> line 721:     Where: Instantiated from 
> xsd::cxx::tree::serializer_impl<xsd::cxx::tree::hex_binary<char, 
> xsd::cxx::tree::simple_type<char, 
> xsd::cxx::tree::_type>>>(xercesc_3_1::DOMElement&, const 
> xsd::cxx::tree::_type&).
> "/usr/local/xsd-4.0.0-i686-solaris/examples/../libxsd/xsd/cxx/tree/type-serializer-map.txx", 
> line 163:     Where: Instantiated from 
> xsd::cxx::tree::type_serializer_map<char>::type_serializer_map().
> "/usr/local/xsd-4.0.0-i686-solaris/examples/../libxsd/xsd/cxx/tree/type-serializer-map.txx", 
> line 507:     Where: Instantiated from 
> xsd::cxx::tree::type_serializer_plate<0, char>::type_serializer_plate().
> "CDAS.cxx", line 17220:     Where: Instantiated from non-template code.
error while compiling (with -std=c++11).  Note the CDAS.cxx was the 
output of compiling my schema file with xsd (and --std c++11).  Is that 
another file you need to fix?

Bernie

On 4/6/16 9:57 AM, Boris Kolpackov wrote:
> Hi Bernie,
>
> Bernie Harris <Bernard.T.Harris at nasa.gov> writes:
>
>> Undefined                       first referenced
>>   symbol                             in file
>> typeinfo for xercesc_3_1::DOMLSException library.o
> My guess would be you've built Xerces-C++ with GCC. If that's the case,
> then you will need to rebuild it with Sun CC:
>
> gmake distclean
> ./configure CC=cc CXX=CC
> gmake
>
> If that doesn't help, you may also want to try to build it in the C++11
> mode, who knows.
>
> Boris

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 7270 bytes
Desc: S/MIME Cryptographic Signature
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20160406/5863da0c/smime.bin


More information about the xsd-users mailing list