- 论坛徽章:
- 0
|
我的OS 为REDHAT LINUX7.3,DATABASE为ORACLE817,用PROC预编译时
可以通过,但在联编是报错(用ORACLE自带的SMAPLE1.PC做实例):
proc config=pcscfg1.cfg iname=sample1.pc(可以成功通过)
cc -L$ORACLE_HOME/lib -lclntsh -o sample1 sample1.c报错如下:
sample1.c:151:19: sqlda.h: No such file or directory
sample1.c:152:20: sqlcpr.h: No such file or directory
sample1.c:194:19: sqlca.h: No such file or directory
sample1.c: In function `sql_error':
sample1.c:222: `sqlca' undeclared (first use in this function)
sample1.c:222: (Each undeclared identifier is reported only once
sample1.c:222: for each function it appears in.)
sample1.c: In function `main':
sample1.c:268: `sqlca' undeclared (first use in this function)
sample1.c:233: warning: return type of `main' is not `int'
哪位知道的朋友请不吝指教. |
|