Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> C++ linking to Oracle lib problem

C++ linking to Oracle lib problem

From: Minya Liang <minyal_at_eecs.umich.edu>
Date: Wed, 13 Oct 1999 19:25:24 -0400
Message-ID: <Pine.GSO.4.10.9910131916400.8520-100000@soso.eecs.umich.edu>


Hi,
i have embedded sql in a c++ program, and got past the precompiler (pro*c) and g++ -c ...(generate .o file) stages. then i linked the .o file with the oracle lib, and other libs by

g++ -o myfile myfile.o -L/usr/caen/oracle-8.0.4/lib/ -lclntsh ...(some other .o files and libs)

no error by the linker.

but when i try to run "myfile", i get :

ld.so.1: auc: fatal: libclntsh.so.1.0: open failed: No such file or directory

supposedly the libclntsh.so is linked by "L/usr/caen/oracle-8.0.4/lib/ -lclntsh" and the libclntsh.so file actually EXISTS in the /usr/caen/oracle-8.0.4/lib/ dir.

why can't "ld" find it???

thanks,

LMY                                    Received on Wed Oct 13 1999 - 18:25:24 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US