Languages and Scripting
cancel
Showing results for 
Search instead for 
Did you mean: 

/usr/ccs/bin/ld: Unsatisfied symbols:

 
SOLVED
Go to solution
Highlighted
Occasional Visitor

/usr/ccs/bin/ld: Unsatisfied symbols:

Hi,

I am compiling files in UNIX, but I received the following messages:

LIVE> cc -o File File.o link.o
/usr/ccs/bin/ld: Unsatisfied symbols:
sqlorat (first referenced in File.o) (code)
sqlglm (first referenced in File.o) (code)
sqlcxt (first referenced in File.o) (code)

What should I need to solve this? Please.. I need to make this program ready ASAP.. :(
7 REPLIES 7
Highlighted
Honored Contributor

Re: /usr/ccs/bin/ld: Unsatisfied symbols:

You need to link to a correct library to get it done. Are you writing files using Oracle DB? Or any other DBs ?

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Highlighted
Occasional Visitor

Re: /usr/ccs/bin/ld: Unsatisfied symbols:

Hi Arun,

Yeah, I am using OracleDB.
Highlighted
Occasional Visitor

Re: /usr/ccs/bin/ld: Unsatisfied symbols:

How do I know which library these 3s sql included? And how may I link the library?
Highlighted
Honored Contributor
Solution

Re: /usr/ccs/bin/ld: Unsatisfied symbols:

Just Try this, ( I dont have Oracle installed in my servers right now, so i can't be more specific)

# cc-o File File.o link.o -L/<$Oracle_Home>/lib/libOra.sl or libOracle.sl

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Highlighted
Occasional Visitor

Re: /usr/ccs/bin/ld: Unsatisfied symbols:

Hi Arun,

I could not find libOra.sl or libOracle.sl in my $ORACLE_HOME/lib or lib64 directory.
But I used the following command, waalllaa..
IT WORKS!!

Thanks a lot for your help!! Really appreciate it... :D

#cc -o File File.o Link.o -L${ORACLE_HOME}/lib -lclntsh

thanks again!!
Highlighted
Honored Contributor

Re: /usr/ccs/bin/ld: Unsatisfied symbols:

Great, You can close this thread if your problem is solved.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Highlighted
Occasional Visitor

Re: /usr/ccs/bin/ld: Unsatisfied symbols:

Here is the solution of my problem:


cc -o file file.o link.o -L${ORACLE_HOME}/lib -lclntsh