PRO*C Compilation Fails With PCC-S-02015, unable to open include file Error When Including SQLCPR.H From 12.2 Onwards
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.
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 at line 24, column 10 in file /opt/local/opkg/share/oracle/product/18.104.22.168_64/precomp/public/sqlcpr.h
PCC-S-02015, unable to open include file
because Pro*C will not look in $ORACLE_HOME/rdbms/public for oratypes.h.
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