Re: Pro *C Unresolved Reference

From: Hugo Teotski <teotski_at_laas.fr>
Date: 1997/06/26
Message-ID: <33B259AE.532B_at_laas.fr>#1/1


zhang, sean wrote:
>
> Hello, everybody,
>
> We got a problem when compiling C programs (Precompiled by
> Pro C 2.2 in Sun Solaries 2.5 system). We run like this
> # proc prog.pc
> /*** goes fine *****/
> # cc -o prog -I$ORACLE_HOME/precomp/public prog.c
> we always got errors like
>
> Undefined First refence in file
> Symbol
>
> sqlcxt prog.o
 ....
> Sean Zhang
> <zhang_at_visi.net>

Hello,

 You must use the dynamic library : libclntsh.so or libclntsh.so.1.0

 my makefile is :



FILE=name_file

$(FILE): $(FILE).c

        gcc -o $(FILE) $(FILE).c -L$(ORACLE_HOME)/lib -lclntsh `cat $(ORACLE_HOME)/rdbms/lib/sysliblist`

$(FILE).c: $(FILE).pc

        proc ireclen=132 oreclen=132 iname=$(FILE).pc



! : you must have ORACLE_HOME/lib in your LD_LIBRARY_PATH

        Good luck

Hugo Teotski Received on Thu Jun 26 1997 - 00:00:00 CEST

Original text of this message