User`s guide

Pro*C/C++
Programmatic Interfaces 5-5
In the following example, Pro*C generates a BS2000-ISAM-output file called
SAMPLE.C
as the
ONAME
option has been omitted:
* INAME=INPUT.LIB[SAMPLE.PC] \
* LNAME=LIST.LIB[SAMPLE.LST]
5.2.3 Additional Remarks
The following are additional remarks on this release of Oracle Database 11g Release 2
(11.2) for Fujitsu BS2000/OSD.
Only compilers and compiler versions supporting the ILCS Standard Linkage are
supported. If the Oracle Database detects a call from a user program not using
Standard Linkage conventions, then it terminates the task and displays message
number 5002 or 5003.
If
ONAME
is not specified when starting a precompiler, then the precompiler
generates a default name which consists of the last part of
INAME
with the relevant
suffix. For example, if the name of the C program you want to compile is
MYPROG.PERS.TEST.PC
, and if
ONAME
is omitted, then Pro*C generates an output file
with the name
TEST.C
.
If you work with float variables, then you may encounter rounding problems. The
workaround is to declare the float variables as double variables instead.
5.3 Pro*C/C++
This section discusses the procedure for using Pro*C/C++.
5.3.1 Starting Pro*C
To start the Pro*C precompiler, enter the following:
/START-PROGRAM $ORAC1120.PROC
* INAME=myprog.PC ONAME=myprog.C [options]
where:
myprog
is the name of the C program you want to compile and link.
options
is one of the
PROC
options. Refer to the Pro*C/C++ Programmer's Guide for a list
and description of the valid options.
5.3.2 Pro*C Include, System Configuration and Demo Files
The Pro*C include files, demo files, and system configuration file are shipped under:
$ORAC1120.PRO.INCLUDE.LIB
Note: You must use brackets when specifying the appropriate
element.
Note: Unlike as described in Pro*C/C++ Programmer's Guide, you
must use one Precompiler-option
INCLUDE
for each path you want to
specify. A list as allowed for the option
SYS_INCLUDE
may cause the
precompiler to loop. See Include-Option for Pro*C/C++.