By rchrd on Feb 03, 2011
Steve Clamage's article on mixing C and C++ in a single program has been updated for Oracle Solaris Studio 12.2.
The C++ language provides mechanisms for mixing code that is compiled by compatible C and C++ compilers in the same program. You can experience varying degrees of success as you port such code to different platforms and compilers. This article shows how to solve common problems that arise when you mix C and C++ code, and highlights the areas where you might run into portability issues. In all cases we show what is needed when using Oracle Solaris Studio C and C++ compilers.