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: "Error occur while using SQLDA and linking libsql.a in UNIX"

Re: "Error occur while using SQLDA and linking libsql.a in UNIX"

From: Kenneth C Stahl <BlueSax_at_Unforgettable.com>
Date: Thu, 16 Dec 1999 16:20:16 -0500
Message-ID: <38595790.BFECBA49@Unforgettable.com>


oraleewk_at_my-deja.com wrote:
>
> hello all,
>
> When I was implementing dynamic method 4 and
> using SQLDA in Oracle 7 under UNIX environment.
> The code passed compile but linking error occured
> at the end.
>
> //====Problem Description=====
> The linker was complaining that
> ld: 0711-317 ERROR: Undefined symbol: .sqlda(int,
> unsigned int, unsigned int)
>
> Besides, more detail information generated by ld
> is as below.
>
> (ld): lib
> /fads/cots/appl/oracle/product/v1/7.3/lib/libsql.a
> (ld): lib
> /fads/cots/appl/oracle/product/v1/7.3/lib/libsqlne
> t.a
> .
> .
> .
>
> (ld): i dbConvert.o
> .
> .
>
> ld: 0711-318 ERROR: undefined symbols were found.
>
> Symbol Inpndx TY CL Source-File
> -----------------------------------------------
> .sqlald__FiUiT2 [104] ER PR dbConvert.cpp
>
> //==== Question ? ========
> But, it confuses me very much that although the
> required library "libsql.a" was linked before the
> calling object "dbConvert.o", the undefined symbol
> linking error still exists.
>
> Even, I ever tried to extract sqlda.o from
> libsql.a to do manual linking, the error just
> won't go away.
>
> //==== Wonder ? =========
> Did anybody ever encounter the similar problem
> while working with oracle in UNIX environment ?
>
> Your Help will be highly appreciated !
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.

SQLDA is the name of a structure and it is uppercase in the header file. sqlald() is a function which initializes an SQLDA structure.

The error messages you've shown above seems to indicate that you are doing a C++ compile since the name is mangled. Are you sure that you are doing a precompile with mode=cpp?

Beyond that , show your source code so that we can see what is going on.

.....................................................................
.....................................................................
.....................................................................
.....................................................................
.....................................................................
.....................................................................
.....................................................................
.....................................................................
.....................................................................
.....................................................................
.....................................................................
.....................................................................
.....................................................................
.....................................................................
.....................................................................
.....................................................................
.....................................................................
.....................................................................
.....................................................................
.....................................................................
.....................................................................
.....................................................................
.....................................................................
.....................................................................
.....................................................................
.....................................................................
.....................................................................
.....................................................................
.....................................................................
.....................................................................
.....................................................................
.....................................................................
.....................................................................
.....................................................................
.....................................................................
.....................................................................
.....................................................................
.....................................................................
.....................................................................
.....................................................................
.....................................................................
.....................................................................
.....................................................................
.....................................................................
.....................................................................
.....................................................................
.....................................................................
.....................................................................
Received on Thu Dec 16 1999 - 15:20:16 CST

Original text of this message

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