unix下proc编译问题
时间:2011-12-06
来源:互联网
大家好:
我在aix5.3下用oracle自带的.mk文件编译pc文件报
Syntax error at line 135, column 2, file /usr/include/standards.h:
Error at line 135, column 2 in file /usr/include/standards.h
#warning The -qdfp option is required to process DFP code in headers.
.1
PCC-S-02014, Encountered the symbol "warning" when expecting one of the followin
g:
a numeric constant, newline, define, elif, else, endif,
error, if, ifdef, ifndef, include, line, pragma, undef,
an immediate preprocessor command, a C token,
The symbol "newline," was substituted for "warning" to continue.
Syntax error at line 60, column 12, file sample1.pc:
Error at line 60, column 12 in file sample1.pc
size_t buf_len, msg_len;
...........1
PCC-S-02201, Encountered the symbol "buf_len" when expecting one of the followin
g:
; , = : ( [ * ? | & < > + - / % . ^ *= /= %= += -= <<= >>=
&&= ||= ^= | & == != <= >= << >> ++ -- ->
The symbol ";" was substituted for "buf_len" to continue.
Error at line 0, column 0 in file sample1.pc
PCC-F-02102, Fatal error while doing C preprocessing
make: The error code from the last command is 1.
Stop.
make: The error code from the last command is 2.
错误。
后面上网查说是oracle数据库客户端和服务端的版本不一致导致的。
我看了一下服务端是9i,服务端是11g。
后面找了一台服务端和客户端都是9i的,编译同样的pc程序是没有问题的。
请问下有谁碰到过类似的问题吗?
这个问题是否一定要重新安装客户端版本才能解决?
还是修改demo_proc.mk内容以适应服务端和客户端版本不一致的问题。
希望有做过类似的朋友给予帮助和指导,先谢谢了。
我在aix5.3下用oracle自带的.mk文件编译pc文件报
Syntax error at line 135, column 2, file /usr/include/standards.h:
Error at line 135, column 2 in file /usr/include/standards.h
#warning The -qdfp option is required to process DFP code in headers.
.1
PCC-S-02014, Encountered the symbol "warning" when expecting one of the followin
g:
a numeric constant, newline, define, elif, else, endif,
error, if, ifdef, ifndef, include, line, pragma, undef,
an immediate preprocessor command, a C token,
The symbol "newline," was substituted for "warning" to continue.
Syntax error at line 60, column 12, file sample1.pc:
Error at line 60, column 12 in file sample1.pc
size_t buf_len, msg_len;
...........1
PCC-S-02201, Encountered the symbol "buf_len" when expecting one of the followin
g:
; , = : ( [ * ? | & < > + - / % . ^ *= /= %= += -= <<= >>=
&&= ||= ^= | & == != <= >= << >> ++ -- ->
The symbol ";" was substituted for "buf_len" to continue.
Error at line 0, column 0 in file sample1.pc
PCC-F-02102, Fatal error while doing C preprocessing
make: The error code from the last command is 1.
Stop.
make: The error code from the last command is 2.
错误。
后面上网查说是oracle数据库客户端和服务端的版本不一致导致的。
我看了一下服务端是9i,服务端是11g。
后面找了一台服务端和客户端都是9i的,编译同样的pc程序是没有问题的。
请问下有谁碰到过类似的问题吗?
这个问题是否一定要重新安装客户端版本才能解决?
还是修改demo_proc.mk内容以适应服务端和客户端版本不一致的问题。
希望有做过类似的朋友给予帮助和指导,先谢谢了。
作者: runlb 发布时间: 2011-12-06
这个问题是aix头文件和编译器兼容问题.如果不想大规模修改,就把/usr/include/standards.h
135行那段注释掉.vi编辑时用wq! 退出。
当然修改也可以,就是比较麻烦。
135行那段注释掉.vi编辑时用wq! 退出。
当然修改也可以,就是比较麻烦。
作者: fudaliang1999 发布时间: 2011-12-10
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28