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_at_soso.eecs.umich.edu>


Hi,
[Quoted] i have embedded sql in a c++ program, and got past the precompiler (pro*c) [Quoted] 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 Thu Oct 14 1999 - 01:25:24 CEST

Original text of this message