Re: undefined reference to sqlcxt

From: youthjohn <member5169_at_dbforums.com>
Date: Sun, 08 Jun 2003 09:03:09 +0000
Message-ID: <2973455.1055062989_at_dbforums.com>


Originally posted by Balaji K R
> Dear friends,
> I am new to Pro*C and Oracle development and I am trying to
> develop some simple applications that query my 815 database
> running on a RedHat 7.1 machine.
>
> The code precompiles without any problems using Oracle's
> precompiler, proc.
> I then try and compile the resulting source file with GCC
> 2.7.2.3 and get complaints about undefined references which
> I am sure are caused by a library I am not linking. I have
> tried linking just about every library in the Oracle lib
> directories to no avail.
>
>
> Here are the compiler messages:
>
>
> /tmp/cca152341.o: In function `main':
> /tmp/cca152341.o(.text+0x1bf): undefined reference to `sqlcxt'
> /tmp/cca152341.o(.text+0x3a4): undefined reference to `sqlcxt'
> /tmp/cca152341.o(.text+0x445): undefined reference to `sqlcxt'
>
>
> The source code is real simple, containing only a simple select
> statement using no variables. I am just trying to get a connection
> to the database and display what was returned.
>
>
> What would be the exact syntax I would use to link this library
> during compile time? Also, I have collected nearly every piece
> of Oracle documentation I can find and everything refers to this
> library as LIBSQL. I am no stranger to linking libraries and using
> the GCC compiler, but the answer to this eludes me.
>
>
>
> Thanks a bunch,

balaji k r

--
Posted via http://dbforums.com
Received on Sun Jun 08 2003 - 11:03:09 CEST

Original text of this message