Re: Help with OCI oracle 8.1.7 compilation

From: <sybrandb_at_yahoo.com>
Date: 29 Jan 2004 00:52:18 -0800
Message-ID: <a1d154f4.0401290052.44411696_at_posting.google.com>


gavspp_at_yahoo.com (gavs) wrote in message news:<54dc4b2a.0401281218.347683b4_at_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 Received on Thu Jan 29 2004 - 09:52:18 CET

Original text of this message