Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> OCI compiling/linking problem
Tobias,
forgive me if I'm wrong, however, I too have had numerous problems with the Oracle example OCI programs. As we don't need them here, I've never bothered to dig much deeper.
I think you'll find that the examples may not have been updated since O7 (!) because the 'oopen' routines you are looking for are, I believe, no longer used (but I'm open to corrections). I believe these were removed/deprecated at 8.0 and are the very examples that were giveing me grief under Oracle 8.0.
I haven't tried since then, but if the same problems exist in 9i then who knows.
Sorry I cannot be of any more help, other than to say, what do the docs have to say about these routines ? If I remember correctly, I thing the OCI docs give better examples than the C code supplied by Oracle.
Cheers,
Norman,.
Tel: 0113 289 6265 Fax: 0113 289 3146 URL: http://www.Lynx-FS.com
-------------------------------------
-----Original Message-----
From: Tobias Herrmann [mailto:tobias.herrmann_at_2kh-tema.de]
Posted At: Tuesday, October 22, 2002 1:57 PM
Posted To: server
Conversation: OCI compiling/linking problem
Subject: OCI compiling/linking problem
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)'
<SNIP>
Received on Tue Oct 22 2002 - 10:13:29 CDT