| Home » Developer & Programmer » Precompilers, OCI & OCCI » PCC-S-02322, found undefined identifier compiling under Fedora 6 Goto Forum:
	| 
		
			| PCC-S-02322, found undefined identifier compiling under Fedora 6 [message #266417] | Mon, 10 September 2007 17:08  |  
			| 
				
				
					| Kiyomori Messages: 6
 Registered: May 2005
 | Junior Member |  |  |  
	| Hi ! 
 In trying to precompile the sample1.pc demo program (on a Fedora 6 X86-64 box), using command line
 proc iname=sample1.pc  code=cpp
 (and I used code=cpp because when I didn't I got errors in gconv.h trying to handle size_t)
 
 I got the following errors...
 System default option values taken from: /u01/app/oracle/product/10.2.0/db_1/precomp/admin/pcscfg.cfg
 
 Semantic error at line 97, column 23, file sample1.pc:
 EXEC SQL CONNECT :username IDENTIFIED BY :password;
 ......................1
 PCC-S-02322, found undefined identifier
 Semantic error at line 97, column 47, file sample1.pc:
 EXEC SQL CONNECT :username IDENTIFIED BY :password;
 ..............................................1
 PCC-S-02322, found undefined identifier
 Semantic error at line 120, column 19, file sample1.pc:
 INTO :emprec INDICATOR :emprec_ind
 ..................1
 PCC-S-02322, found undefined identifier
 Semantic error at line 120, column 37, file sample1.pc:
 INTO :emprec INDICATOR :emprec_ind
 ....................................1
 PCC-S-02322, found undefined identifier
 Semantic error at line 122, column 28, file sample1.pc:
 WHERE EMPNO = :emp_number;
 ...........................1
 PCC-S-02322, found undefined identifier
 
 For reference, my pcscfg file is....
 
 sys_include=(/build/s630/precomp/public,/usr/include,/opt/gcc33/lib64/gcc-lib/x86_64-suse-linux/3.3/include,/usr/lib/gcc-lib/x86_64-r  edhat-linux/3.2.3/include,/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/include,/usr/include/linux,/usr/lib/gcc/x86_64-redhat-linux/4.1. 1/include)
 ltype=long
 define=__x86_64__
 include=(/u01/app/oracle/product/10.2.0/db_1/precomp/public)
 include=/u01/app/oracle/product/10.2.0/db_1/precomp/hdrs
 
 
 [Edit: remove big size]
 [Updated on: Mon, 10 September 2007 23:34] by Moderator Report message to a moderator |  
	|  |  |  
	|  |  
	|  |  
	|  |  
	| 
		
			| Re: PCC-S-02322, found undefined identifier compiling under Fedora 6 [message #266508 is a reply to message #266501] | Tue, 11 September 2007 01:25   |  
			| 
				
				
					| Kiyomori Messages: 6
 Registered: May 2005
 | Junior Member |  |  |  
	| Thanks. 
 I wonder if I might prevail upon you with another question.
 
 When I want to compile sample1.pc as CODE=ANSI_C I get a mass of errors ...
 
 $ proc iname=sample1.pc  code=ansi_c
 
 Pro*C/C++: Release 10.2.0.1.0 - Production on Tue Sep 11 02:36:37 2007
 
 Copyright (c) 1982, 2005, Oracle.  All rights reserved.
 
 System default option values taken from: /u01/app/oracle/product/10.2.0/db_1/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
 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 106, column 3, file /usr/include/gconv.h:
 Error at line 106, column 3 in file /usr/include/gconv.h
 __gconv_trans_fct __trans_fct;
 ..1
 PCC-S-02201, Encountered the symbol "__gconv_trans_fct" when expecting one of th
 e following:
 
 char, const, double, enum, float, int, long, ulong_varchar,
 OCIBFileLocator OCIBlobLocator, OCIClobLocator, OCIDateTime,
 OCIExtProcContext, OCIInterval, OCIRowid, OCIDate, OCINumber,
 OCIRaw, OCIString, short, signed, sql_context, sql_cursor,
 struct, union, unsigned, utext, uvarchar, varchar, void,
 volatile, a typedef name,
 
 Syntax error at line 0, column 0, file sample1.pc:
 Error at line 0, column 0 in file sample1.pc
 PCC-S-02201, Encountered the symbol "<eof>" when expecting one of the following:
 
 ; : an identifier, end-exec, random_terminal
 
 Error at line 0, column 0 in file sample1.pc
 PCC-F-02102, Fatal error while doing C preprocessing
 
 |  
	|  |  |  
	|  |  
	|  | 
 
 
 Current Time: Fri Oct 31 18:39:13 CDT 2025 |