Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.tools -> Oracle OCI Link Problems

Oracle OCI Link Problems

From: Robert Schultz <bert_at_ncinter.net>
Date: Mon, 02 Apr 2001 20:46:48 GMT
Message-ID: <Yy5y6.5238$l61.1078642@news1.news.adelphia.net>

I'm just getting into OCI. I have a very simply program that I just trying to compile, link and run.

The code:
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <oci.h>

int main(int argc, char *argv[])
{

    int             rc;
    OCIEnv *          p_env;

    rc = OCIInitialize(OCI_DEFAULT, 0, 0, 0, 0);

    rc = OCIEnvInit(&p_env, OCI_DEFAULT, 0, 0);

    return 0;
}

The gcc command i'm trying to use is:
gcc -I$ORACLE_HOME/rdbms/demo -I$ORACLE_HOME/rdbms/public -I$ORACLE_HOME/net work/pub
lic ocitest.c

That takes care of compiling, but I have no idea what I need to link too, or how to link to it with
gcc.

What do I need to link to (Sun Solaris 8, 64bit, Oracle 8.0.5) with gcc?

--
Robert Schultz - bert_at_ncinter.net
Received on Mon Apr 02 2001 - 15:46:48 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US