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: Libraries needed for Pro*C on AIX

Re: Libraries needed for Pro*C on AIX

From: Dave <solomons_dad.w.marks_and_whom_at_oracle.com>
Date: Wed, 20 Jul 2005 09:43:08 +0100
Message-ID: <aroDe.6$vC4.51@news.oracle.com>

Poh Tien Lye wrote:
> Hi ,
>
> I am porting a program from Ms Windows to AIX 5.
> The program is written in C and uses Pro*C to access the
> oracle 9.2.0 database. The program also uses OCI for
> updating BLOB to the database. On the Ms Windows,
> the only oracle library that is used is oraSQL.lib.
>
> However, on the AIX when I link the program to libsql9.a.
> The linker complains of many symbol not found. Below are a
> sample of these:
>
> lcvb2w
> OCIAttrGet
> lxldini
> lxlinit
> lxinitc
> kptrput
>
> When I use the symfind, I found that these are found in many libraries
> under both the oracle/lib and lib32 directories.
> Sorry for posting this simple question as I am working on the AIX for the
> first time. Or is there a FAQ where I can find the answer? Many thanks.
>
>

lib contains 64-bit libraries, lib32 32-bit. If you're making a 64-bit application, link the 64-bit libraries.

symfind is the way to go if you don't want to use the Oracle makefile demo_proc.mk. Example syntax, to build prog from src1.c, src2.c, procsrc.pc is:

make -f demo_proc.mk build EXE=prog OBJS="src1.o src2.o procsrc.o"

and check through the makefile (with a cool head) for other targets and options.

As for which libraries you pick, it doesn't really matter if you have several libraries that match the requirements. Pick a library where the symbol is defined, not just referenced (check the docs for nm which is used by symfind for an explanation on what the various output characters mean), and that matches the sort of linkage you want - if static, pick static libs, if dynamic, pick dynamic libs.

Each library you add may add additional missing symbols. That's ok; just repeat the process until all missing symbols are mopped up. Received on Wed Jul 20 2005 - 03:43:08 CDT

Original text of this message

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