Databases Reference
In-Depth Information
Supported compilers
DB2 Express-C is currently supported on Linux and Windows platforms. At the
time of writing, the following C/C++ compilers are supported.
Table 4-1 Supported C/C++ Compiler versions
Platform
Language
Supported compiler versions
Linux
C
GNU/Linux gcc Versions 2.95.3 and 2.96
Linux
C++
GNU/Linux g++ Versions 2.95.3 and 2.96
Windows
C/C++
Microsoft Visual C++® Version 6.0
Microsoft Visual C++ .NET
Intel® C++ Compiler for 32-bit applications Version 6 or
later
For the latest information about the supported C/C++ compiler versions, refer to
the DB2 Application Development Web site at:
http://www.ibm.com/software/data/db2/udb/ad/
Setting up the C/C++ environment
To set up the C/C++ environment, follow these steps:
1. Check C/C++ compiler
Ensure a supported C/C++ compiler is installed on a DB2 Express-C
supported platform. Check Table 4-1 for a list of supported compiler versions.
Refer to the compiler documentation for installation and usage instructions.
2. Check DB2 installation
Ensure the development machine has either DB2 Express-C installed (if the
database will be accessed locally) or at least the DB2 Application
Development Client (if accessing the database remotely). This ensures you
have the necessary precompilers and static libraries to develop C/C++
programs. If a DB2 client is installed, ensure that the client machine can
connect successfully to the remote server.
3. Check Windows environment (if applicable)
On Windows development machines, ensure that the INCLUDE environment
variable contains %DB2PATH%\INCLUDE as the first directory ahead of any
Microsoft Platform SDK include directories. If this is not the case, you can do
the following:
a. Modify the INCLUDE variable at a command prompt by running the
command: set INCLUDE=%DB2PATH%\include;%INCLUDE%
 
Search WWH ::




Custom Search