- 论坛徽章:
- 0
|
我是第一次使用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,所以,请教高手,这是怎么回事呢?感觉像是我没有连接一些库文件什么。 |
|