proc无法打开包含文件

时间:2019-03-09 17:45:11

标签: compiler-errors proc

我尝试在REDHAT 7中编译此proc代码,并且收到以下错误消息,提示“无法打开包含文件”。我该如何解决?

命令:

proc test.pc code=CPP sys_include=/usr/include cpp_suffix=cpp

错误:

Pro*C/C++: Release 12.2.0.1.0 - Production on Sat Mar 9 17:06:09 2019

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

System default option values taken from: /usr/lib/oracle/12.2/precomp/admin/pcscfg.cfg

Error at line 7, column 11 in file /usr/include/gnu/stubs.h
# include <gnu/stubs-32.h>
..........1
PCC-S-02015, unable to open include file
Error at line 33, 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 51, column 11 in file /usr/include/wchar.h
# include <stddef.h>
..........1
PCC-S-02015, unable to open include file
Error at line 50, column 10 in file /usr/include/libio.h
#include <stdarg.h>
.........1
PCC-S-02015, unable to open include file
Error at line 83, column 12 in file /usr/include/stdio.h
#  include <stdarg.h>
...........1
PCC-S-02015, unable to open include file
Error at line 32, column 10 in file /usr/include/string.h
#include <stddef.h>
.........1
PCC-S-02015, unable to open include file
Error at line 32, column 10 in file /usr/include/stdlib.h
#include <stddef.h>
.........1
PCC-S-02015, unable to open include file
Error at line 146, column 10 in file /usr/include/sys/types.h
#include <stddef.h>
.........1
PCC-S-02015, unable to open include file
Error at line 24, column 10 in file /usr/include/alloca.h
#include <stddef.h>
.........1
PCC-S-02015, unable to open include file

我以前看到过一些查询,但是还没有找到解决方案。我的配置文件'/usr/lib/oracle/12.2/precomp/admin/pcscfg.cfg'的配置如下。

sys_include=($ORACLE_HOME/sdk/include,$ORACLE_HOME/precomp/admin,/usr/include,/usr/lib/gcc/x86_64-redhat-linux/4.1.2/include,/usr/lib/gcc/x86_64-redhat-linux/4.4.7/include,/usr/lib/gcc/x86_64-redhat-linux/4.4.4/include,/usr/lib64/gcc/x86_64-suse-linux/4.8/include)
ltype=short
define=__x86_64__

0 个答案:

没有答案