This content has been marked as final. Show 1 reply
Pro*C doesn't compile the program. It just creates a .c file.
Then you compile and link it with the library libclntsh.so
libclntsh.so -> libclntsh.so.11.1
libclntsh.so.10.1 -> libclntsh.so
To fool the compiler you have to COPY the data of the library:
BTW, what do you mean by crashing? If you try to run the compiled program and it can't find the library, it's not a crash
mkdir ~/1 cd ~/1 cat $ORACLE_HOME/lib/libclntsh.so > libclntsh.so.10.1 ln -s libclntsh.so.10.1 libclntsh.so gcc -L$HOME/1 -lclntsh