Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Compiling an OTL file
"Alfredo C." wrote:
>
> Hi,
>
> I am trying to compile an OTL file under UNIX Solaris, but
> the compiler sends this outut:
>
> Undefined first referenced
> symbol in file
> OCIDescriptorAlloc sampleOtl.o
> OCIErrorGet sampleOtl.o
> OCITransCommit sampleOtl.o
> OCIAttrSet sampleOtl.o
> OCIStmtPrepare sampleOtl.o
> OCIHandleAlloc sampleOtl.o
> OCIBindByName sampleOtl.o
> OCIAttrGet sampleOtl.o
> OCIInitialize sampleOtl.o
> OCISessionBegin sampleOtl.o
> OCIEnvInit sampleOtl.o
> OCILobWrite sampleOtl.o
> OCIParamGet sampleOtl.o
> OCIStmtExecute sampleOtl.o
> OCIServerDetach sampleOtl.o
> OCIStmtFetch sampleOtl.o
> OCIDescriptorFree sampleOtl.o
> OCIServerAttach sampleOtl.o
> OCIHandleFree sampleOtl.o
> OCISessionEnd sampleOtl.o
> OCIDefineByPos sampleOtl.o
> ld: fatal: Symbol referencing errors. No output written to sampleOtl
> *** Error code 1
>
> In the Makefile are included the next lines:
>
> ### Directory locations
> LIBPATH = -L$(ORACLE_HOME)/lib \
> -L$(ORACLE_HOME)/rdbms/lib
>
> INCLUDE = -I$(ORACLE_HOME)/rdbms/demo \
> -I$(ORACLE_HOME)/rdbms/public \
> -I$(ORACLE_HOME)/plsql/public \
> -I$(ORACLE_HOME)/network/public
>
> Does anyone know what is wrong or what is missing?
>
> Any help will be highly appreciated.
You don't have the correct .h files included in your file samplOtl.pc.
-- Ron Reidy Oracle DBA Reidy Consulting, L.L.C.Received on Fri Nov 23 2001 - 21:21:32 CST
![]() |
![]() |