This content has been marked as final. Show 3 replies
Can you post your compile and link line.
BTW oraocci11.lib is a Windows library and when you say you have added that in additional libs and working fine I am unable to understand.
For an OCCI application to successfully compile and work
- you need to pass -I$ORACLE_HOME/rdbms/public during compilation to pick the headers
- pass -L$ORACLE_HOME/lib -locci -lclntsh during linking.
libclntsh.so.11.1 is the client library every application connecting to server is required to link with
libocci.so.11.1 is required if your application is an OCCI application
libocijdbc11.so is required for JDBC applications
libociei.so is required if you want your application to run in Instant Client Mode.
My application runs on both windows and Linux.
In the windows i add the library oraocci11.lib for the linking. if i remove the library i will receive link error.
But in Linux i am not receiving link error even if i remove -locci -lclntsh during the link.
I am concerned how the OCCI function calls are getting resolved in linux.
Can you pls post your compile & link line