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

Bernie Harris Bernard.T.Harris at nasa.gov
Thu Apr 7 13:16:01 EDT 2016


On 4/7/16 11:35 AM, Boris Kolpackov wrote:
> Hi Bernie,
>
> Bernie Harris <Bernard.T.Harris at nasa.gov> writes:
>
>> 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.
> Do you know if in Sun CC code compiled in the C++11 mode is incompatible
> with that compiled in C++98? Perhaps it is just the standard C++ library
> that is different and you could build Xerces-C++ in C++98 but with a modern
> library?
According to the documentation 
<https://docs.oracle.com/cd/E37069_01/html/E37071/gndfg.html#scrolltoc>
>
>
>       Using C++11 Features
>
> In Oracle Solaris Studio 12.4, the C++ compiler supports C++11, a new 
> language and ABI (Application Binary Interface).
>
> In C++ 11 mode, the CC compiler uses the g++ ABI and a version of the 
> g++ runtime library that is supplied with Oracle Solaris Studio. For 
> this release, version 4.8.2 of the g++ runtime library is used.
>
...
>
>
>         Library Incompatibilities with C++11 in this Release
>
> With –std=x or –compat=g, the following –library=v options are not 
> allowed:
>
>  *
>
>     Cstd
>
>  *
>
>     stlport4
>
>  *
>
>     stdcxx4
>
>  *
>
>     Crun
>
>  *
>
>     iostream
>
> When you need to list libraries to be linked, such as when you are 
> creating a shared library, use the following options in this order 
> when using the –compat=g or –std=x options:
>
> -lstdc++ -lgcc_s -lCrunG3
I'll need to take a closer look at building Xerces-C++ .
>
>
>> Is that another file you need to fix?
> Yes, looks like it. Do you think you could apply the casts and then
> send me the patch. I would hate to do it one file at a time.
I'll try but I haven't done much C++ in 15 years.  I've mainly been 
doing Java and my C++ is really rusty.

Bernie
-------------- 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/20160407/2be501e9/smime.bin


More information about the xsd-users mailing list