Oracle的pro * C编译器和gnu C(__builtin_va_list,__attribute__等) [英] Oracle's pro*C compiler and gnu C (__builtin_va_list, __attribute__, etc)

查看:433
本文介绍了Oracle的pro * C编译器和gnu C(__builtin_va_list,__attribute__等)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆