Oracle的pro * C编译器和gnu C(__builtin_va_list,__attribute__等) [英] Oracle's pro*C compiler and gnu C (__builtin_va_list, __attribute__, etc)
问题描述
我使用pro em来编译数据库库,它将.ppc库文件转换为gcc可以使用的.c文件。但是,我在pro C中遇到很多错误,如下所示:
I'm compiling a database library with proC which converts the .ppc library file to a .c file that gcc can use. However, I'm getting a lot of errors in proC like the following
PCC-S-02201, Encountered the symbol
"__ attribute__ " when expecting one of
the `following`
...
, Encountered the symbol
"__builtin_va_list" when expecting one of
the `following`
缺少的符号来自标准链包括stdio.h和stdlib.h。如何解决此问题?
The missing symbols are from a chain of standard includes like stdio.h and stdlib.h. How do I get around this issue?
我正在编译的库来自我们正在升级的旧solaris系统(到新的solaris 10系统),头文件似乎不使用这些符号。例如较新的.h档案有
The library I'm compiling came from an old solaris system that we're now upgrading (to a new solaris 10 system) and the header files don't seem to use these symbols. e.g. the newer .h files has
typedef __builtin_va_list va_list
而旧的.h文件有
typedef void* va_list
有很多这样的东西,所以我不愿意去解决所有的手动与typedef
There are a lot of things like this so I'm reluctant to go and fix all of them manually with a typedef
推荐答案
在 $中更改
到 PARSE
ORACLE_HOME / precomp / admin / pcscfg.cfg PARTIAL
- 它将使用更宽松的C语法解析,所以Pro * C不会叨叨C语法它不明白。
Change PARSE
param in your $ORACLE_HOME/precomp/admin/pcscfg.cfg
to PARTIAL
- it will use more relaxed C parsing so Pro*C don't bitch about C syntax it doesn't understand.
这篇关于Oracle的pro * C编译器和gnu C(__builtin_va_list,__attribute__等)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!