使用PROC编译.pc文件时错误情况及处理

来源:互联网 发布:vm不能安装mac os x 编辑:程序博客网 时间:2024/06/04 18:05

使用PROC编译test.pc时没有生成.c文件出现如下情况:

Pro*C/C++: Release 11.2.0.1.0 - Production on Fri Jun 23 20:46:54 2017

Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

System default option values taken from: /usr/oracle/product/11.2.0/db_1/precomp/admin/pcscfg.cfg

Error at line 34, column 11 in file /usr/include/stdio.h
# include <stddef.h>
..........1
PCC-S-02015, unable to open include file
Error at line 15, column 10 in file /usr/include/_G_config.h
#include <stddef.h>
.........1
PCC-S-02015, unable to open include file
Error at line 52, column 11 in file /usr/include/wchar.h
# include <stddef.h>
..........1
PCC-S-02015, unable to open include file
Error at line 53, column 11 in file /usr/include/libio.h
# include <stdarg.h>
..........1

PCC-S-02015, unable to open include file
Syntax error at line 332, column 3, file /usr/include/libio.h:
Error at line 332, column 3 in file /usr/include/libio.h
  size_t __pad5;
..1
PCC-S-02201, Encountered the symbol "size_t" when expecting one of the 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,
The symbol "enum," was substituted for "size_t" to continue.

Syntax error at line 364, column 62, file /usr/include/libio.h:
Error at line 364, column 62 in file /usr/include/libio.h
typedef __ssize_t __io_read_fn (void *__cookie, char *__buf, size_t __nbytes);
.............................................................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 373, column 6, file /usr/include/libio.h:
Error at line 373, column 6 in file /usr/include/libio.h
                                 size_t __n);
.....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 416, column 34, file /usr/include/libio.h:
Error at line 416, column 34 in file /usr/include/libio.h
extern int __underflow (_IO_FILE *);
.................................1
PCC-S-02201, Encountered the symbol "*" when expecting one of the following:

   , )

Syntax error at line 417, column 30, file /usr/include/libio.h:
Error at line 417, column 30 in file /usr/include/libio.h
extern int __uflow (_IO_FILE *);
.............................1
PCC-S-02201, Encountered the symbol "*" when expecting one of the following:

   , )

Syntax error at line 418, column 33, file /usr/include/libio.h:
Error at line 418, column 33 in file /usr/include/libio.h
extern int __overflow (_IO_FILE *, int);
................................1
PCC-S-02201, Encountered the symbol "*" when expecting one of the following:

   , )

Syntax error at line 460, column 31, file /usr/include/libio.h:
Error at line 460, column 31 in file /usr/include/libio.h
extern int _IO_getc (_IO_FILE *__fp);
..............................1
PCC-S-02201, Encountered the symbol "*" when expecting one of the following:

   , )

Syntax error at line 461, column 31, file /usr/include/libio.h:
Error at line 461, column 31 in file /usr/include/libio.h
extern int _IO_putc (int __c, _IO_FILE *__fp);
..............................1
PCC-S-02201, Encountered the symbol "_IO_FILE" when expecting one of the followi
ng:

   ... auto, char, const, double, enum, float, int, long,


编辑

/usr/oracle/product/11.2.0/db_1/precomp/admin/pcscfg.cfg文件,将所缺的路径添加上

"sys_include= "

即可生成对应的.c文件

原创粉丝点击