solaris-studio

How to build a compiler-independent C++ library (for Solaris Studio and gcc)?

一世执手 提交于 2019-12-11 06:57:12
问题 I would like to extend my library, which currently compiles only using gcc, to be used by Solaris Studio as well. My idea is to do the following: Write wrapper functions in C, which expose the relevant parts of the interface with extern C linkage. Then build this library using gcc. The resulting c-header and binary are compiler independent as there is no name mangling anymore. Include the c-header and link into the project compiled with Solaris Studio. Question: Is this a feasible approach or

What causes SunCC crash in g3mangler.cc when using `-std=XXX`?

妖精的绣舞 提交于 2019-12-11 05:53:42
问题 I'm trying to determine what is causing SunCC 5.11 - 5.13 to die with ../lnk/g3mangler.cc, line 825 (message from SunCC 5.13). Here's what it looks like during a compile. The machine is a 4th gen Core i5, so its got the features which correspond to the macros. /opt/solarisstudio12.4/bin/CC -DDEBUG -g3 -O0 -std=c++03 -D__SSE2__ -D__SSE3__ -D__SSSE3__ -D__SSE4_1__ -D__SSE4_2__ -D__AES__ -D__PCLMUL__ -D__RDRND__ -D__AVX__ -xarch=avx -m64 -native -KPIC -template=no%extdef -w -erroff=wvarhidemem