undefined reference to sqlcxt
Date: 18 Jan 2003 21:38:26 -0800
Message-ID: <b1d33613.0301182138.7a7be286_at_posting.google.com>
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
Received on Sun Jan 19 2003 - 06:38:26 CET