[OpenIndiana-discuss] use cases of Sun Studio-compiled C++ libraries on OI
Alex Smith (K4RNT)
shadowhunter at gmail.com
Sun Dec 7 22:26:29 UTC 2014
Wouldn't this break the binary compatibility guarantee that Solaris had
been traditionally marketed on?
I'm no kernel engineer, so I wouldn't know.
" 'With the first link, the chain is forged. The first speech censured, the
first thought forbidden, the first freedom denied, chains us all
irrevocably.' Those words were uttered by Judge Aaron Satie as wisdom and
warning... The first time any man's freedom is trodden on, we’re all
damaged." - Jean-Luc Picard, quoting Judge Aaron Satie, Star Trek: TNG
episode "The Drumhead"
- Alex Smith
- Huntsville, Alabama metropolitan area USA
On Sun, Dec 7, 2014 at 12:51 PM, Alan Coopersmith <
alan.coopersmith at oracle.com> wrote:
> On 11/28/14 06:25 PM, Richard L. Hamilton wrote:
>
>> If it’s C++, the name mangling is different; look up the options for the
>> Sun
>>
> > and GNU versions of nm respectively, use each version of nm with its
> > demangling option, and whichever has sensible output corresponds to the
> > compiler used.
>
> Even with Studio, there are now at least 7 different binary incompatible
> options for building C++ code:
>
> -compat=4 - pre-C++98 SunPro 4.x compiler ABI (only in Studio 12.2 &
> older)
> -compat=5 (aka -std=sun03) - C++03 Sun compiler ABI
> -compat=g (aka -std=c++03) - C++03 with g++ extensions/ABI
> -std=c++11 - C++11 features & g++ library/ABI (only in Studio 12.4 &
> later)
> -library=Cstd - C++03 with Studio libCstd library
> -library=stdcxx4 - C++03 with Apache stdcxx library
> -library=stlport4 - C++03 with STLport library
>
> As you'll see in the CC man page, all C++ code in a program must use the
> same -compat, -std, & -library flags - you can't use a library built with
> different ones than the program itself uses.
>
> -alan-
>
> "A strange game. The only winning move is not to play.
> How about a nice game of chess?"
>
>
> _______________________________________________
> openindiana-discuss mailing list
> openindiana-discuss at openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss
>
More information about the openindiana-discuss
mailing list