PRO*C Compilation Fails With PCC-S-02015, unable to open include file Error When Including SQLCPR.H From 12.2 Onwards

(Doc ID 2316840.1)

Last updated on OCTOBER 19, 2017

Applies to:

Precompilers - Version 12.2 BETA1 to 12.2 BETA1 [Release 12.2]
Information in this document applies to any platform.

Symptoms

 Unlike earlier versions, the Pro*C header file sqlcpr.h shipped with Oracle Database Client version 12.2 and above,includes the OCI header file oratypes.h.

When a Pro*C program which includes sqlcpr.h is built using the Oracle supplied makefile,demo_proc.mk,precompilation is successful as the proc command generated by the makefile has both "include=$ORACLE_HOME/precomp/public" and "include=$ORACLE_HOME/rdbms/public". However if you attempt to precompile such a Pro*C program using just

"proc <program_name>" under version 12.2, then it will fail with:

Error:

Error at line 24, column 10 in file /opt/local/opkg/share/oracle/product/12.2.0.1_64/precomp/public/sqlcpr.h
#include <oratypes.h>
.........1
PCC-S-02015, unable to open include file

because Pro*C will not look in $ORACLE_HOME/rdbms/public for oratypes.h.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms