Problem in compilation.

Hi,

I am executing the below mentioned code:-

 
proc SQLCHECK=SEMANTICS iname=CDBInteractor.pc parse=none code=cpp cpp_suffix=cpp
g++ -c main.cpp
g++ -o pre_request_engine main.o -I/oracle/oracle/app/product/10g/precomp  -L/oracle/oracle/app/product/10g/lib32 -lnsl -ldl

And getting an error

collect2: library libclntsh not found

Please suggest something!!

Thanks in advance...

Try to get that missing libclntsh from you Linux Toolbox CDs or the web; something like that?

libclntsh is part of the oracle client

see if you have it

/oracle/Ora817/lib/libclntsh.a

I picket a random oracle client, it lies here in my case

try to ad the oracle lib directory to you LIBPATH