gpt4 book ai didi

.pc 文件 "PCC-S-02015, unable to open include file"和 "PCC-S-02201, Encountered the symbol "size_t""的编译错误

转载 作者:行者123 更新时间:2023-11-30 16:15:30 33 4
gpt4 key购买 nike

我为数据库连接编写了一个 .pc 代码。但由于编译错误而失败。我正在运行以下命令:

proc connectivity.c

输出为:

/Pro*C/C++: Release 12.1.0.1.0 - Production on Wed Jul 17 18:54:54 2019

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

System default option values taken from:
/u01/app2/ora12c/product/12.1.0/dbhome_1/precomp/admin/pcscfg.cfg

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
Syntax error at line 307, column 3, file /usr/include/libio.h:
Error at line 307, 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.

我检查了所有头文件是否存在。这个问题来自一些库变量和函数。

最佳答案

我检查了“/u01/app2/ora12c/product/12.1.0/dbhome_1/precomp/admin/pcscfg.cfg”文件中的sys_include变量。某些包含路径不可用。在服务器中找不到这些目录。我尝试在编译期间包含路径(替代方法是更改​​ pcscfg.cfg 中的路径)。

proc  include=/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include connection.pc

问题已解决。

关于.pc 文件 "PCC-S-02015, unable to open include file"和 "PCC-S-02201, Encountered the symbol "size_t""的编译错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57077327/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com