免费注册 查看新帖 |

Chinaunix

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

proc编译过了.pc,在编译.c的时候出现问题,请教高手 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-06-18 17:25 |只看该作者 |倒序浏览
我是第一次使用proc

makefile中是这样写的,其中一些选项也是google出来的:
PROC=$(ORACLE_HOME)/bin/proc
...
CCC_HP=aCC
...
INFINCL=$(ORACLE_HOME)/precomp/doc/proc
...
CFLAGS_ORA=-Isource -Iinclude -I../ui -I$(INFINCL) I$(ORACLE_HOME)/precomp/public -D_ORACLE
...
CFLAGS_INF= -L$(ORACLE_HOME)/lib -L$(ORACLE_HOME)/lib/proc
...

.pc.o:
        echo "start compile source/dbinfo.pc ...";\
        $(PROC) parse=no iname=source/dbinfo.pc;\
        echo "compile source/dbinfo.pc ok";\
        echo "compile compile source/dbinfo.c";\
        $(CCC_HP) -o $@ -c -I$(INFINCL) $(CFLAGS_ORA) $(CFLAGS_INF) -lclntsh -lclient10 source/dbinfo.c;\
        echo "ok";

-lclntsh -lclient10这两个编译选项是做什么的呢?

编译的时候,出现了一堆错误:
start compile source/dbinfo.pc ...

Pro*C/C++: Release 10.2.0.1.0 - Production on Wed Jun 18 17:13:17 2008

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

System default option values taken from: /home/oracle/Oracle10g/precomp/admin/pcscfg.cfg

compile source/dbinfo.pc ok
compile compile source/dbinfo.c
aCC: warning 1913: `I/home/oracle/Oracle10g/precomp/public' does not exist or cannot be read
"source/dbinfo.c", line 117: warning #2837-D: omission of explicit type is
          nonstandard ("int" assumed)
  extern sqlcxt (/*_ void **, unsigned int *,
         ^

"source/dbinfo.c", line 119: warning #2837-D: omission of explicit type is
          nonstandard ("int" assumed)
  extern sqlcx2t(/*_ void **, unsigned int *,
         ^

"source/dbinfo.c", line 121: warning #2837-D: omission of explicit type is
          nonstandard ("int" assumed)
  extern sqlbuft(/*_ void **, char * _*/);
         ^

"source/dbinfo.c", line 122: warning #2837-D: omission of explicit type is
          nonstandard ("int" assumed)
  extern sqlgs2t(/*_ void **, char * _*/);
         ^

"source/dbinfo.c", line 123: warning #2837-D: omission of explicit type is
          nonstandard ("int" assumed)
  extern sqlorat(/*_ void **, unsigned int *, void * _*/);
         ^

"source/dbinfo.c", line 168: error #2020: identifier "$include" is undefined
  $include sqlca;
  ^

"source/dbinfo.c", line 169: error #2020: identifier "$include" is undefined
  $include sqlda;
  ^

"source/dbinfo.c", line 170: error #2020: identifier "$include" is undefined
  $include sqltypes;
  ^

"source/dbinfo.c", line 180: error #2020: identifier "$int" is undefined
        $int number;
        ^

"source/dbinfo.c", line 182: error #2020: identifier "$select" is undefined
        $select count(*) into $number from systables where (tabname not like 'sys%') and (tabname[1,2] not between ' A' and ' Z') and (tabname not like 'synclog'and (tabname not like 'record') and (tabname not like 'acr_record')) ;
        ^
。。。。。。。。。。

我是在移植应用程序,以前是使用informix数据库的,现在要使用oracle,所以,请教高手,这是怎么回事呢?感觉像是我没有连接一些库文件什么。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP