Re: Pro *C Unresolved Reference
Date: 1997/06/25
Message-ID: <01bc8170$23500be0$e8abf6ce_at_smrdpc02.sigma-micro.com>#1/1
Yes, I had the same problem when I tried to compile a Pro*C precompiled
file in
MS VC++. The file would compile but I could not create a .exe because VC++
would return a linking error. The problem is that sqlcxt is declared as an
extern function by Pro*C.
I called support and they very quickly solved the problem by telling me to
include the library file 'SQLLIBXX' where XX depends on you version of
Pro*C. This library contains the function (and many others) that will allow
your program to link. It would have been nice if this was better documented
but OH WELL!
zhang, sean <zhang_at_visi.net> wrote in article <33AEFA27.38B0_at_visi.net>...
> 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
>
> We are sure The Sun Compiler and Oracle work fine, because
> when we run sample programs like
> # make -f proc.mk sample1
>
> every thing is fine.
>
> Does anybody know what happened in our situation? And any
> suggestioins or ideas? Thank you very much in advance.
>
>
> Sean Zhang
> <zhang_at_visi.net>
>
Received on Wed Jun 25 1997 - 00:00:00 CEST