用proc预处理c++测试程序时出现了错误:环境:
AIX5.3,oracle10g预处理命令:
proc iname=testcpp.pc oname=testcpp.cxx CODE=CPP sys_include=/usr/vacpp/include出错信息如下:
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 原因:解决方法:
1.直接修改 /usr/include/standards.h
#if defined(__IBM_PP_WARNING)
#warning  The -qdfp option is required to process DFP code in headers.
#else
#error  The -qdfp option is required to process DFP code in headers.
#endif into: #if !defined(__IBM_PP_WARNING)
#error  The -qdfp option is required to process DFP code in headers.
#endif2.如果没有权限,修改后另存到其它地方,proc处理时加入 sys_include 选项指定我修改后放入c++程序所在目录
修改后的预处理命令:
proc iname=testcpp.pc oname=testcpp.cxx CODE=CPP sys_include=/usr/vacpp/include  sys_include=.
收集到的资料:
http://www.mypm.net/blog/user1/luoxq/archives/2007/19802.html
http://www.freelists.org/archives/oracle-l/11-2007/msg00641.html