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 -> OCI compiling/linking problem

OCI compiling/linking problem

From: Tobias Herrmann <tobias.herrmann_at_2kh-tema.de>
Date: Tue, 22 Oct 2002 14:57:01 +0200
Message-ID: <ap3i3l$r9hbp$1@ID-82527.news.dfncis.de>


Hello,

I'm having trouble compiling a example programm from oracle9i for linux. For example oci08.c. The linker is missing some libraries. But which on. There is no description which says how I have to compile these example programes and which prerequesits they need.

The error message is like this:

oci08.o: In function `setup(void)':
oci08.o(.text+0xae): undefined reference to `oopen(cda_def *, cda_def *, unsigned char *, int, int, unsigned char *, int)' oci08.o(.text+0xed): undefined reference to `oparse(cda_def *, unsigned char
*, int, int, unsigned int)'

oci08.o(.text+0x142): undefined reference to `obndra(cda_def *, unsigned char *, int, unsigned char *, int, int, int, short *, unsigned short *, unsigned short *, unsigned int, unsigned int *, unsigned char *, int, int)' oci08.o(.text+0x29f): undefined reference to `odefin(cda_def *, int, unsigned char *, int, int, int, short *, unsigned char *, int, int, unsigned short *, unsigned short *)'
oci08.o: In function `get_data(void)':
oci08.o(.text+0x31b): undefined reference to `oexfet(cda_def *, unsigned int, int, int)'

oci08.o(.text+0x387): undefined reference to `ofen(cda_def *, int)'
oci08.o: In function `err_report(cda_def *)':
oci08.o(.text+0x61a): undefined reference to `oerhms(cda_def *, short,
unsigned char *, int)'
oci08.o: In function `logon(void)':
oci08.o(.text+0x718): undefined reference to `olog(cda_def *, unsigned char
*, unsigned char *, int, unsigned char *, int, unsigned char *, int,
unsigned int)'
oci08.o: In function `logoff(void)':
oci08.o(.text+0x76f): undefined reference to `oclose(cda_def *)'
oci08.o(.text+0x7a8): undefined reference to `ologof(cda_def *)'
collect2: ld returned 1 exit status

Which one of this dozens libraries do I have to use. Please help me. Received on Tue Oct 22 2002 - 07:57:01 CDT

Original text of this message

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