I'm tryng to compile a source db.c intended to generate an executble named db
with following command:
gcc -o db db.c -I/.../ocilib-3.5.0/include -L/.../ocilib-3.5.0/src/.libs
-locilib
(assuming environment variables are correctly set, especially $ORACLE_HOME and
$LD_LIBRARY_PATH which containts the path for /.../ocilib-3.5.0/src/.libs),
but this fails and I got a list of undifined calls for such routines as
OCI_ReleaseResultSet, etc...
Obviously, the option -locilib is not sufficient, what else to do?
Thank you in advance for answer
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I'm tryng to compile a source db.c intended to generate an executble named db
with following command:
gcc -o db db.c -I/.../ocilib-3.5.0/include -L/.../ocilib-3.5.0/src/.libs
-locilib
(assuming environment variables are correctly set, especially $ORACLE_HOME and
$LD_LIBRARY_PATH which containts the path for /.../ocilib-3.5.0/src/.libs),
but this fails and I got a list of undifined calls for such routines as
OCI_ReleaseResultSet, etc...
Obviously, the option -locilib is not sufficient, what else to do?
Thank you in advance for answer
why don't you install ocilib properly ?
you need to link -L$ORACLE_HOME/lib -lclntsh as well