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: Help! I can't link Pro-C files under 7.3.2

Re: Help! I can't link Pro-C files under 7.3.2

From: <Solomon.Yakobson_at_entex.com>
Date: 1997/02/20
Message-ID: <856450527.30739@dejanews.com>#1/1

I work in HP-UX environment. There was a change in PRO*C library set going from 7.2 to 7.3. I assume the same applies to RS6000 (AIX 4.1.5). To figure out the right library set you can take a look at ORACLE provided make file sample. Below is a fragment of a HP-UX make file I am using to link PRO*C. May be it will give you a hint (assuming that ORACLE keeps library names across the board):

DBLIB = $(ORACLE_HOME)/lib

LIBFLAGS = -p -L$(DBLIB)

LIBS  = $(DBLIB)/libsql.a \
        $(DBLIB)/libclient.a \
        $(DBLIB)/libsqlnet.a \
        $(DBLIB)/libncr.a \
        $(DBLIB)/libsqlnet.a \
        $(DBLIB)/libcommon.a \
        $(DBLIB)/libgeneric.a \
        $(DBLIB)/libepc.a \
        $(DBLIB)/libc3v6.a \
        $(DBLIB)/libcore3.a \
        $(DBLIB)/libnlsrtl3.a \
        $(DBLIB)/libcore3.a \
        $(DBLIB)/libnlsrtl3.a

Solomon.Yakobson_at_entex.com

In article <330b750f.0_at_news.usinternet.com>,   ken_at_mn.csoft.com wrote:
>
> I am trying to compile some C programs which use embedded SQL,
> but am not having any luck getting anything to link. I am doing this
> on an RS6000 (AIX 4.1.5) and Oracle 7.3.2.
>
> I'm able to precompile (with "proc") fine, but am unable to figure out
> what libraries I need to link against.
>
> Here's what my C-Compile command looks like:
>
> cc $FILE.c -o $FILE.exe -DUNIX -DAIX -DORACLE \
> -I$MY_INCL_DIR \
> -lc -lm \
> -L$MY_LIB_DIR -lmylib \
> -L$ORACLE_HOME/lib \
> -lsql -lsqlnet -lnlsrtl3 -lc3v6 -lcore3 -lld -lxa
>
> However, compile fails at link-time with these errors:
>
> ld: 0711-317 ERROR: Undefined symbol: .upih2o
> ld: 0711-317 ERROR: Undefined symbol: .upiico
> ld: 0711-317 ERROR: Undefined symbol: .upipi
> [about 40 lines snipped]
> ld: 0711-317 ERROR: Undefined symbol: .upihmi
> ld: 0711-317 ERROR: Undefined symbol: .upidsc
> ld: 0711-317 ERROR: Undefined symbol: .kpurpc
> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
> information.
>
> I've searched every ".a" file in $ORACLE_HOME/lib and cannot
> find ANY of these symbols ("grep", and "ar -tv | grep"). I've
> also seen mention of a "-lora", but we don't have any files
> ANYWHERE called "libora.a".
>
> Forgive my cluelessness, but I don't have any manuals, and I'm
> used to Ingres (cc $FILE.c -L$ING_LIB_DIR -lingres -lc -lm), and
> Oracle's libraries have me completely confused! The "demo"
> proc.mk file didn't enlighten me any, either.
>
> Thanks in advance,
> Ken Frank
> ken_at_mn.csoft.com

-------------------==== Posted via Deja News ====-----------------------
      http://www.dejanews.com/     Search, Read, Post to Usenet
Received on Thu Feb 20 1997 - 00:00:00 CST

Original text of this message

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