Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.tools -> Oracle OCI Link Problems
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.netReceived on Mon Apr 02 2001 - 15:46:48 CDT
![]() |
![]() |