Help with OCI oracle 8.1.7 compilation

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • gavs

    #1

    Help with OCI oracle 8.1.7 compilation

    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.
  • sybrandb@yahoo.com

    #2
    Re: Help with OCI oracle 8.1.7 compilation

    gavspp@yahoo.co m (gavs) wrote in message news:<54dc4b2a. 0401281218.3476 83b4@posting.go ogle.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.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.
    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

    Comment

    Working...