Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> C++ linking to Oracle lib problem
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