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

Home -> Community -> Usenet -> c.d.o.misc -> Re: compiling error with oracle 8i running solaris 8 (OTL)

Re: compiling error with oracle 8i running solaris 8 (OTL)

From: Sergei Kuchin <kuchin_at_hotmail.com>
Date: 4 Jan 2002 12:30:58 -0800
Message-ID: <66ea7a8b.0201041230.10c13d5a@posting.google.com>


Cd to $ORACLE_HOME/rdbms/demo, look for a makefile. It'll show you what Oracle object libraries need to be included.

Sergei

sli_at_venaca.com (baka) wrote in message news:<ec269823.0201021453.682f46f9_at_posting.google.com>...
> I tried to compile the example codes from OTL
> http://www.geocities.com/skuchin/otl/home.htm
>
> this is the command i used to compile since i could not get the demos
> makefile to work.
>
> CC -I/opt/oracle/8.1.7/rdbms/demo -I/opt/oracle/8.1.7/rdbms/public
> -L/opt/oracle/8.1.7/lib/ ex10_oci8.cpp
>
> and this the error msgs:
>
> Undefined first referenced
> symbol in file
> OCIDescriptorAlloc ex10_oci8.o
> OCIErrorGet
> /home/sli/examples/SunWS_cache/CC_obj_R/R1stvR2upr6dFAT9pBub.o
> OCITransCommit
> /home/sli/examples/SunWS_cache/CC_obj_O/OlHLL50LPgd3_jQgRJ-s.o
> OCIAttrSet
> /home/sli/examples/SunWS_cache/CC_obj_O/OlHLL50LPgd3_jQgRJ-s.o
> OCIStmtPrepare ex10_oci8.o
> OCIHandleAlloc ex10_oci8.o
> OCIBindByName
> /home/sli/examples/SunWS_cache/CC_obj_R/R1stvR2upr6dFAT9pBub.o
> OCIAttrGet
> /home/sli/examples/SunWS_cache/CC_obj_O/OlHLL50LPgd3_jQgRJ-s.o
> OCIInitialize ex10_oci8.o
> OCISessionBegin ex10_oci8.o
> OCIEnvInit ex10_oci8.o
> OCILobWrite
> /home/sli/examples/SunWS_cache/CC_obj_O/OlHLL50LPgd3_jQgRJ-s.o
> OCIParamGet ex10_oci8.o
> OCIStmtExecute
> /home/sli/examples/SunWS_cache/CC_obj_O/OlHLL50LPgd3_jQgRJ-s.o
> OCIServerDetach
> /home/sli/examples/SunWS_cache/CC_obj_C/CKi-eKqQ-QV4g71rSxaG.o
> OCIStmtFetch
> /home/sli/examples/SunWS_cache/CC_obj_H/HM1v--RdGBQpbVBsPLNH.o
> OCIDescriptorFree
> /home/sli/examples/SunWS_cache/CC_obj_H/HM1v--RdGBQpbVBsPLNH.o
> OCIServerAttach ex10_oci8.o
> OCIHandleFree
> /home/sli/examples/SunWS_cache/CC_obj_R/R1stvR2upr6dFAT9pBub.o
> OCISessionEnd
> /home/sli/examples/SunWS_cache/CC_obj_C/CKi-eKqQ-QV4g71rSxaG.o
> OCIDefineByPos
> /home/sli/examples/SunWS_cache/CC_obj_R/R1stvR2upr6dFAT9pBub.o
> ld: fatal: Symbol referencing errors. No output written to a.out
>
> i know it has something to do with the library not the header files
> but how do i fix that?
>
> any help would be great,
> thx
>
> sli
Received on Fri Jan 04 2002 - 14:30:58 CST

Original text of this message

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