Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> REPOST: linking oracle program using $(STATICPROLDLIBS)
I try to link an oracle 8 program using $(STATICPROLDLIBS)
Still get undefined symbols, next is the output using -bnoquiet.
Using $(PROLDLIBS), the shared libs version for the program, gives no
undefined symbols. What goes wrong in making the static version?
My makefile:
gserver: gba.c con_sql.c
cc -bnoquiet -o connect gba.c con_sql.c \ -I$(ORACLE_HOME)/rdbms/demo \ -L$(ORACLE_HOME)/lib $(STATICPROLDLIBS)
The output:
ld: 0711-318 ERROR: Undefined symbols were found.
The following symbols are in error: Symbol Inpndx TY CL Source-File(Object-File) ORImport-File
RLD: Address Section Rld-typeReferencing Symbol
.odescr [312] ER PR con_sql.c(con_sql.o) 00000090 .text R_RBR [12]
000002cc .text R_RBR [14]
00001f64 .text R_RBR [40]
.odefin [314] ER PR con_sql.c(con_sql.o) 000001c8 .text R_RBR [12]
00000404 .text R_RBR [14]
0000209c .text R_RBR [40]
.oerhms [326] ER PR con_sql.c(con_sql.o) 000007c8 .text R_RBR [22]
.ora_error
.ofetch [330] ER PR con_sql.c(con_sql.o) 00000a04 .text R_RBR [26]
.get_row_2
0000111c .text R_RBR [32]
.get_row
00001bbc .text R_RBR [38]
.oparse [334] ER PR con_sql.c(con_sql.o) 00000d68 .text R_RBR [28]
.get_cdata
00001934 .text R_RBR [34]
.get_pdata
00002e14 .text R_RBR [54]
.getkeys
.oexec [336] ER PR con_sql.c(con_sql.o) 00000dc4 .text R_RBR [28]
.get_cdata
00001990 .text R_RBR [34]
.get_pdata
00002e70 .text R_RBR [54]
.getkeys
.ocom [340] ER PR con_sql.c(con_sql.o) 00001e38 .text R_RBR [38]
00001e68 .text R_RBR [38]
00002ed4 .text R_RBR [54]
.getkeys
.ocan [342] ER PR con_sql.c(con_sql.o) 00001e8c .text R_RBR [38]
.oclose [356] ER PR con_sql.c(con_sql.o) 00002fa4 .text R_RBR [56]
.close_db
00002fe4 .text R_RBR [56]
.close_db
00003028 .text R_RBR [56]
.close_db
.ologof [358] ER PR con_sql.c(con_sql.o) 0000306c .text R_RBR [56]
.close_db
.olog [360] ER PR con_sql.c(con_sql.o) 0000316c .text R_RBR [58]
.oopen [362] ER PR con_sql.c(con_sql.o) 000031cc .text R_RBR [58]
0000322c .text R_RBR [58]
0000328c .text R_RBR [58]
.ocof [364] ER PR con_sql.c(con_sql.o) 000032d4 .text R_RBR [58]
This message was cancelled from within Mozilla. Received on Thu Dec 27 2001 - 05:50:36 CST
![]() |
![]() |