Compilarion error with pro*C
61515Oct 16 2003 — edited May 27 2004Hello,
when I tried to compile any one of the examples provides by Oracle installation in
$ORACLE_HOME/precom/demo/proc
by executing the following command:
$ make -f demo_proc.mk sample1
(the current directory us $ORACLE_HOME/precom/demo/proc),
I get the following error:
=====================================================
Pro*C/C++: Release 9.2.0.1.0 - Production on Fri Oct 17 02:05:22 2003
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
System default option values taken from: /opt/oracle/product/9.2.0/precomp/admin/pcscfg.cfg
Syntax error at line 72, column 26, file /usr/include/gconv.h:
Error at line 72, column 26 in file /usr/include/gconv.h
unsigned char **, size_t *, int, int);
.........................1
PCC-S-02201, Encountered the symbol "size_t" when expecting one of the following
:
... auto, char, const, double, enum, float, int, long,
ulong_varchar, OCIBFileLocator OCIBlobLocator,
OCIClobLocator, OCIDateTime, OCIExtProcContext, OCIInterval,
OCIRowid, OCIDate, OCINumber, OCIRaw, OCIString, register,
short, signed, sql_context, sql_cursor, static, struct,
union, unsigned, utext, uvarchar, varchar, void, volatile,
a typedef name, exec oracle, exec oracle begin, exec,
exec sql, exec sql begin, exec sql type, exec sql var,
The symbol "enum," was substituted for "size_t" to continue.
Syntax error at line 88, column 7, file /usr/include/gconv.h:
Error at line 88, column 7 in file /usr/include/gconv.h
size_t *);
......1
PCC-S-02201, Encountered the symbol "size_t" when expecting one of the following
:
... auto, char, const, double, enum, float, int, long,
ulong_varchar, OCIBFileLocator OCIBlobLocator,
OCIClobLocator, OCIDateTime, OCIExtProcContext, OCIInterval,
OCIRowid, OCIDate, OCINumber, OCIRaw, OCIString, register,
short, signed, sql_context, sql_cursor, static, struct,
union, unsigned, utext, uvarchar, varchar, void, volatile,
a typedef name, exec oracle, exec oracle begin, exec,
exec sql, exec sql begin, exec sql type, exec sql var,
The symbol "enum," was substituted for "size_t" to continue.
Syntax error at line 97, column 6, file /usr/include/gconv.h:
Error at line 97, column 6 in file /usr/include/gconv.h
size_t *);
.....1
===============================================
I cut the messages errors for brevity
The Pro*C/C++ configuration file pcscfg.cfg contains the following
sys_include=(/usr/include,/usr/lib/gcc-lib/i486-suse-linux/2.95.3/include,/usr/lib/gcc-lib/i386-redhat-linux/2.96/include,/usr/include/linux,/
usr/lib/bcc/include)
include=(/opt/oracle/product/9.2.0/precomp/public)
include=/opt/oracle/product/9.2.0/precomp/hdrs
include=/opt/oracle/product/9.2.0/tpcc2x_2/src
include=/opt/oracle/product/9.2.0/precomp/include
include=/opt/oracle/product/9.2.0/oracore/include
include=/opt/oracle/product/9.2.0/oracore/public
include=/opt/oracle/product/9.2.0/rdbms/include
include=/opt/oracle/product/9.2.0/rdbms/public
include=/opt/oracle/product/9.2.0/rdbms/demo
include=/opt/oracle/product/9.2.0/nlsrtl/include
include=/opt/oracle/product/9.2.0/nlsrtl/public
include=/opt/oracle/product/9.2.0/network_src/include
include=/opt/oracle/product/9.2.0/network_src/public
include=/opt/oracle/product/9.2.0/network/include
include=/opt/oracle/product/9.2.0/network/public
include=/opt/oracle/product/9.2.0/plsql/public
ltype=short
Any idea of where is the problem?
Thanks in advance.
Juan C. Casamayor
jcarlos@dsic.upv.es