Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Linking a application the the Oracle Libraries

Linking a application the the Oracle Libraries

From: <chuck_carson_at_my-dejanews.com>
Date: Thu, 15 Apr 1999 20:44:01 GMT
Message-ID: <7f5j2f$6gh$1@nnrp1.dejanews.com>


I am using Pro*C on an Oracle 805 server running on a RH 5.2 box.

I have written an app and precompiled it without problems using Oracle's precompiler, proc.

All my attempts to compile and link the resulting source file have failed. The code compiles fine without any syntax errors but it has unresolved references to the embedded Oracle calls. (Which I know are in a needed library, but I do not know which one, I have tried linking severeal libraries but to no avail)

HERE ARE THE COMPILE TIME ERRORS:
/tmp/cca128641.o: In function `main':
/tmp/cca128641.o(.text+0x1bf): undefined reference to `sqlcxt'
/tmp/cca128641.o(.text+0x3a4): undefined reference to `sqlcxt'
/tmp/cca128641.o(.text+0x445): undefined reference to `sqlcxt'

I am fluent with C/C++ and GNU's 2.7.2.3 C compiler but new to Pro*C and developing Oracle apps.

Can someone tell me how to link to the oracle libraries, what their names are, and etc...

Thanks,
Chuck

-----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own Received on Thu Apr 15 1999 - 15:44:01 CDT

Original text of this message

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