Compiling 64-bit applications
If your application is written for 64-bit addressing, use the ODBC 64-bit driver to compile your application.
Procedure
To compile 64-bit applications:
Perform one of the following actions based on the compiler
method:
| Compile method | Application language | Action |
|---|---|---|
| Compile on z/OS® | All | Specify the LP64 compile option. Also consider specifying the FLOAT(HEX) and
WARN64 compile options. a
b Example: See DSNTEJ8E in
prefix.SDSNSAMP.
|
| Compile in z/OS UNIX System Services | C | Use the c89 command with the -W
'c,lp64' compile option. Also consider specifying the float(hex) and warn64 compile
options. a bExample: To compile a 64-bit C application that is named dsn8o3vp.c
that resides in the current working directory, use the following
c89 compile
command:
|
| C++ | Use the cxx compile command
with the -W 'c,lp64' compile option. Also consider
specifying the float(hex) and warn64 compile
options. a bExample: To compile a 64-bit C++ application that is named dsn8o3vp.c
that resides in the current working directory, use the following
cxx compile
command:
|
|
| Compile with the xlc utility on z/OS UNIX System Services | C | Specify the appropriate compiler options in
the source program, a configuration file, or on the command line. Example: The following example shows how to compile a 64-bit C application by using the command
line
options:
|
| C++ | Specify the appropriate compiler options in
the source program, a configuration file, or on the command line. Example: The following example shows how to compile a 64-bit C++ application by using the
command line
options:
|
|
Note:
|
||