DB2 Version 9.7 for Linux, UNIX, and Windows

Support for database application development in C++

The following table lists C++ compilers that are supported for DB2® database application development.

Unless otherwise noted, the compilers listed in the following table support both 32-bit and 64-bit application development.

Table 1. Supported C++ compilers
Operating System Supported Compiler(s)
AIX®
  • IBM® XL C/C++ Enterprise Edition Version 7.0 for AIX
  • IBM XL C/C++ Enterprise Edition Version 8.0 for AIX
  • IBM XL C/C++ Enterprise Edition Version 9.0 for AIX
  • IBM XL C/C++ Enterprise Edition Version 10.1 for AIX
  • IBM XL C/C++ Enterprise Edition Version 11.1 for AIX
Important:
  • The minimum C++ runtime level requires the following filesets:
    • For AIX Version 5.3: xlC.rte 9.0.0.8 and xlC.aix50.rte 9.0.0.8 (or later). These filesets are included in the June 2008 IBM C++ Runtime Environment Components for AIX package.
    • For AIX Version 6.1: xlC.rte 9.0.0.8 and xlC.aix61.rte 9.0.0.8 (or later). These filesets are included in the June 2008 IBM C++ Runtime Environment Components for AIX package.
  • You can download the latest IBM C++ Runtime Environment Components for AIX from the IBM AIX XL C and C++ support web site.
HP-UX on IPF (IA64)
  • For HP-UX 11i v2, use HP aC++ Compiler Version A.06.05
  • For HP-UX 11i v3, use HP aC++ Compiler Version A.06.12
Linux on x86 (32-bit DB2 instances and compilers only)
  • GNU/Linux g++ version 4.1.2 on RHEL5 and SLES10
  • Intel C++ Compiler Version 9.1 and above
Note: If you experience problems with the g++ version 4.1.2 compiler on RHEL5, revert back to the g++ version 3.4 compiler which is available as a compat package on RHEL 5.
Linux on AMD64/EM64T (x64)
  • GNU/Linux g++ versions 4.1.2 on RHEL5 and SLES10
Note: If you experience problems with the g++ version 4.1.2 compiler on RHEL5, revert back to the g++ version 3.4 compiler which is available as a compat package on RHEL 5.
Linux on POWER® (PowerPC®, Power Systems™ Servers, pSeries®)
  • GNU/Linux g++ version 4.1.2 on RHEL5 and SLES10
  • IBM XL C/C++ Enterprise Edition Version 9.0 for Linux on pSeries
Note: If you experience problems with the g++ version 4.1.2 compiler on RHEL 5, revert back to the g++ version 3.4 compiler which is available as a compat package on RHEL 5.
Linux on zSeries® (s/390x)
  • GNU/Linux g++ versions 3.4 and 3.3 on SLES9
  • GNU/Linux g++ version 4.1.2 on RHEL5 and SLES10
Note: If you experience problems with the g++ version 4.1.2 compiler on RHEL5, revert back to the g++ version 3.4 compiler which is available as a compat package on RHEL 5.
Solaris on UltraSPARC
  • Sun Studio 10
  • Sun Studio 11
  • Sun Studio 12 (Starting in DB2 Version 9.7 Fix Pack 2)
  • Forte C++ Version 6.2
  • Sun ONE Studio 7, Compiler Collection
Solaris on x64 (x64, AMD64/EM64T)
  • Sun Studio 10
  • Sun Studio 11
  • Sun Studio 12 (Starting in DB2 Version 9.7 Fix Pack 2)
Windows on x86 (32-bit DB2 instances only)
  • Intel Proton Compiler for Windows 32-bit applications, Version 9.0.021 or later
  • Microsoft Visual C++ .NET
Windows on x64 (x64, AMD64/EM64T)
  • Microsoft Windows Server 2003 SP1 SDK (Build 1830 or later), C/C++ compiler for x64
  • Intel Proton Compiler for Windows x64, Version 9.0.024 or later
  • Microsoft Visual C++ 2005