General
cancel
Showing results for 
Search instead for 
Did you mean: 

Error "Unsatisfied symbol "sqlcx2t" in file " while compiling pro*C program

NDhivya
Advisor

Error "Unsatisfied symbol "sqlcx2t" in file " while compiling pro*C program

Hi,

I get the following error while compiling Pro*C program.

/home/barts/builddir $ make build_get_plc_data
Making Object files for get_plc_data.c
/usr/ccs/bin/cc -c +DD64 -I. -I../lib -I/u01/dba/oracle/product/1012ias/precomp/public get_plc_data.c
/usr/ccs/bin/cc -o get_plc_data get_plc_data.o -L/u01/dba/oracle/product/1012ias/lib -lclntsh +DD64
ld: Unsatisfied symbol "sqlcx2t" in file get_plc_data.o
ld: Unsatisfied symbol "main" in file
2 errors.
*** Error exit code 1 (ignored)

Please help.

Regards,
Dhivya
1 REPLY
Dennis Handly
Acclaimed Contributor

Re: Error "Unsatisfied symbol "sqlcx2t" in file " while compiling pro*C program

Are you creating a program or a shlib? For the latter you link with -b.

If a program, where is main? Do you need another Oracle shlib for sqlcx2t?

And do you need to link a bunch of objects, not just get_plc_data.o?