By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,480 Members | 1,144 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,480 IT Pros & Developers. It's quick & easy.

Help with OCI oracle 8.1.7 compilation

P: n/a
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.h> is 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.
Jul 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
ga****@yahoo.com (gavs) wrote in message news:<54**************************@posting.google. com>...
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.h> is 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.


IIRC (and I verified) sample code and makefiles are in
$ORACLE_HOME/rdbms/demo. Watch out for demo_rdbms.mk

Sybrand Bakker
Senior Oracle DBA
Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.