免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 3876 | 回复: 10
打印 上一主题 下一主题

在线求助:需要打开什么编译开关? [复制链接]

ohmylove 该用户已被删除
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-03-06 08:49 |只看该作者 |倒序浏览
提示: 作者被禁止或删除 内容自动屏蔽
ohmylove 该用户已被删除
2 [报告]
发表于 2003-03-06 10:13 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
ohmylove 该用户已被删除
3 [报告]
发表于 2003-03-06 11:57 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
ohmylove 该用户已被删除
4 [报告]
发表于 2003-03-06 13:02 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
5 [报告]
发表于 2003-03-06 18:08 |只看该作者

在线求助:需要打开什么编译开关?

PRO*C有个编译选项是对PRO*C文件的检查程序的
应该是sqlcode=symatic(语义的)我可能拼错

如果把它设置成其它更高的检查的话
会报头文件找不到的错误
ohmylove 该用户已被删除
6 [报告]
发表于 2003-03-07 08:59 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
7 [报告]
发表于 2003-03-07 11:13 |只看该作者

在线求助:需要打开什么编译开关?

我知道你是哪里出错了,在你编译时没有指定路径
在$ORACLE_HOME/precomp/lib下有一文件叫env_precomp.mk
对SYS_INCLUDE有定义


  1. proc sys_include=($ORACLE_HOME/precomp/syshdr,/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include,/usr/include)  include=($ORACLE_HOME/rdbms/demo,$ORACLE_HOME/rdbms/public) iname=sample1
复制代码


论坛徽章:
0
8 [报告]
发表于 2003-03-07 11:16 |只看该作者

在线求助:需要打开什么编译开关?

这年头用proc/proc++写东西并不是很爽,你可以用OCI写,但首先得自己进行一次封装成类才行.

论坛徽章:
0
9 [报告]
发表于 2003-03-08 10:16 |只看该作者

在线求助:需要打开什么编译开关?

4. proc 预编译设置
  预编译选项 设置方式 缺省值 值域 说明
  代码一致性 Mode=string Oracle ansi, iso, oracle
  允许使用SQLCODE Def_sqlcode=boolean No yes, no,true, false
  指定预编译源文件 Iname=string *none* *none*
  指定预编译头文件路径 Include=string OR include=(string, …) ( ) *none*
  指定系统头文件的路径 Sys_include=stringOR Sys_include=(string, …) ( ) *none*
  预编译宏定义 define=string
  预编译后的代码类型 Code=string Kr_c ansi_c, cpp,kr_c
  指定与字符串数组,字符串对应的类型 Char_map=string Charz charz,varchar2,charf,string
  指定连接数据库的字符串(username/password [@dbname]) Userid=string *none* *none*
  指定 C 编译器支持的字符集 Comp_charset=string Multi_byte multi_byte,single_byte
  数据库兼容模式(Oracle) Dbms=string Native v6, v6_char,v7, native, v8
  事物相关参数 Duration=string Transaction session, transaction (设置object 在cache中的时间)
  错误处理 Errors=boolean Yes yes, no,true, false (是否将错误信息发送到终端)
  信息处理标准 Fips=string None none, sql89, sql2, yes, no
  游标控制 Hold_cursor=boolean No yes, no,true, false (control holding of cursors in the cursor cache)
  控制游标cache中的游标释放 Release_cursor=boolean No yes, no,true, false (control release of cursors from cursor cache)
  Allow a NULL fetch without indicator variable Unsafe_null=boolean No yes, no,true, false
  是否在产生的code 中加入行号(#line) Lines=boolean No yes, no,true, false
  设置字符串长度 Maxliteral=number 1024 10-1024
  可以被cache的打开的最大游标数目 Maxopencursors=number 10 *none*
  语言支持 nls_char, nls_local
  是否使用 ORACA Oraca=boolean No yes, no,true, false
  控制是否解析 non-SQL CODE Parse=string Full full, partial,none
  Control flagging of select errors Select_error=boolean Yes yes, no, true, false
  预编译时对SQL代码的检查方式 Sqlcheck=string Syntax(语法) none, syntax,semantics(语义), full, limited(有限的)
  是否支持多线程 Threads=boolean No yes, no, true, false
  允许使用varchar 结构 Varchar=boolean No yes, no,true, false
  
  
  

论坛徽章:
0
10 [报告]
发表于 2003-03-08 10:18 |只看该作者

在线求助:需要打开什么编译开关?

sqlcheck syntax Amount of compile-time SQL checking
这个要求太高了
可以定义为语义级检查
这样就不会检查头文件了


当然如果你想用语法检查的话
那么如楼上的楼上所说

要求指明头文件路径
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP