Skip to content
Snippets Groups Projects
Commit d30c9b03 authored by Stephen Kelly's avatar Stephen Kelly Committed by Brad King
Browse files

Workaround SolarisStudio bug with libstdc++.

Using iostream and cxxabi.h together causes a compile failure

 .../CC-gcc/include/c++/4.8.2/cxxabi.h", line 131: Error: Only one of a
 set of overloaded functions can be extern "C".

See https://community.oracle.com/thread/3644901 for details.

This only happens if the iostream include is before the cxxabi include.

The available solutions are: re-order the includes in
SystemInformation.cxx, skip the test for KWSYS_CXX_HAS_CXXABI, or cause
it to fail by adding the include.  Do the latter for now.

Change-Id: Ia1a6a6fca12eb9a42f4a4be5252f22fb6e74a318
parent af86ac7d
No related branches found
No related tags found
No related merge requests found
......@@ -548,6 +548,10 @@ int main()
#if (defined(__GNUC__) || defined(__PGI)) && !defined(_GNU_SOURCE)
# define _GNU_SOURCE
#endif
#if defined(__SUNPRO_CC) && __SUNPRO_CC >= 0x5130 \
&& __linux && __SUNPRO_CC_COMPAT == 'G'
# include <iostream>
#endif
#include <cxxabi.h>
int main()
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment