Home » Developer & Programmer » Precompilers, OCI & OCCI » Linking errors!!
icon9.gif  Linking errors!! [message #267136] Wed, 12 September 2007 10:01 Go to next message
Messages: 1
Registered: September 2007
Junior Member
Hi there!

I have written a dynamic sql code and used the functions like sqlald, sqlnul and sqlclu.

it is compiling fine but at the time of linking, its giving me referncing errors.
i have inluded the oracle libraries, libclient.a and libsql.a

i cannot use dynamic linking due to application restrictions.

my makefile has the following:

cc -o chk_pe_th chk_pe_th.o \
/opt/sw/oracle/product/8.0.6/lib/libclient.a \
/opt/sw/oracle/product/8.0.6/lib/libsql.a \
../lib/libhdsRDW.a \

below is the error:

Undefined first referenced
symbol in file
sqlald__FiUiT2 ../lib/libhdsRDW.a(HadesDynamicSql.o)
sqlnul__FPUsT1Pi ../lib/libhdsRDW.a(HadesDynamicSql.o)
sqlclu__FP5SQLDA ../lib/libhdsRDW.a(HadesDynamicSql.o)
UX:ld: ERROR: chk_pe_th: fatal error: Symbol referencing errors. No output written to chk_pe_th

can someone please help? its is very urgent!!!!!

Re: Linking errors!! [message #267153 is a reply to message #267136] Wed, 12 September 2007 10:40 Go to previous message
Michel Cadot
Messages: 67648
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
1/ "its is very urgent!!!!!" NO! Nothing is urgent in Forum and you know it if you read the OraFAQ Forum Guide

2/ Afaik, these are not Oracle library.
What is ../lib? Seems to be an application directory.
Try to find where in your HadesDynamicSql.X you need this library


Previous Topic: Duplication in OCI Batch mode insertion problem
Next Topic: An error was occured for this query
Goto Forum:

Current Time: Thu Jan 21 22:25:32 CST 2021