Hi,
I have written a small C code to test with OCI calls (OCI Initialize,
OCIEnvInit etc). The program is called myprog.C. The OS is AIX 5.2.
myprog.C
#include<oci.h // This is in ${ORACLE_HOME}/rdbms/demo
int main() {
OCIcalls here
calls to connect to db.
close db
exit
}
I used the following syntax to compile:
make -f demo_rdbms.mk build OBJS=myprog.o EXE=myprog
generates error message:
<oci.his not found.
I have tried including the path in my ${PATH} variable, but it still
fails to compile.
Can you please shed some light on how to actually compile my code.
The compilation features are not very well documented in Oracle. An
example makefile will be great.
Thanks.
gavs.
I have written a small C code to test with OCI calls (OCI Initialize,
OCIEnvInit etc). The program is called myprog.C. The OS is AIX 5.2.
myprog.C
#include<oci.h // This is in ${ORACLE_HOME}/rdbms/demo
int main() {
OCIcalls here
calls to connect to db.
close db
exit
}
I used the following syntax to compile:
make -f demo_rdbms.mk build OBJS=myprog.o EXE=myprog
generates error message:
<oci.his not found.
I have tried including the path in my ${PATH} variable, but it still
fails to compile.
Can you please shed some light on how to actually compile my code.
The compilation features are not very well documented in Oracle. An
example makefile will be great.
Thanks.
gavs.
Comment