Linker problem "undefined symbol" for functions that should be in the library

Simon, Christine CSimon@gic-global.com
Tue Apr 9 05:26:00 GMT 2002


Hello,

this is the second time I write concerning the link problem. It seems that noone could help me so far.

So please, if anyone has an idea what could be the reason of my problem please answer.

I treid to compile/like a c++ program that uses ORACLE libraries (OCI: Oracle Call Interface). As a result of the ld I got a lot of undefined symbol errors. 

I tried to compile and link one of the example programs delivered by oracle and received the following error messages:

ld: 0711-317 ERROR: Undefined symbol: .ologof
ld: 0711-317 ERROR: Undefined symbol: .oerhms
ld: 0711-317 ERROR: Undefined symbol: .oopen
ld: 0711-317 ERROR: Undefined symbol: .oclose
ld: 0711-317 ERROR: Undefined symbol: .oparse
ld: 0711-317 ERROR: Undefined symbol: .obndrn
ld: 0711-317 ERROR: Undefined symbol: .odefin
ld: 0711-317 ERROR: Undefined symbol: .odescr
ld: 0711-317 ERROR: Undefined symbol: .oexec
ld: 0711-317 ERROR: Undefined symbol: .ofetch

These are all functions from the OCI libraries.


I did the compile with the following commands:
	g++ cdemo6.cpp -I/$MEDIAHOME/oratest2 -I/usr/oracle/app/oracle/product/8.1.7/rdbms/demo 
		-L/usr/oracle/app/oracle/product/8.1.7/rdbms/lib -ldbtools8 -lknlopt -lnavhoa

Perhaps someone knows  the reason why? (or something else I can try?)

I will be very happy about any kind of assistance.

Best regards
Chris




More information about the Gcc-help mailing list