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

使用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文件

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值