Re: C++ and OCI

From: Vincent Schenkelaars <vfsj3_at_fel.tno.nl>
Date: Thu, 5 Aug 1993 13:05:18 GMT
Message-ID: <1993Aug5.130518.7775_at_fel.tno.nl>


jim_at_ursa.sis.yorku.ca (Jim Vopni) writes:

>In article <1993Aug4.152739.13104_at_govonca.gov.on.ca> loxtonr_at_govonca.gov.on.ca (Ron Loxton) writes:
 

> I am currently writting an Oracle OCI application using C++.
> When I try to link the modules it returns an unresolved external for
> olon. I have ensured that the proper libraries have been refered to in
> the link stmt.
 

> Any one have similar experience????

>You probably need to make sure you define the OCI routines
>as extern "C". We do all of our OCI calls from C++.

>ie.
>extern "C" {
>#include <ocidfn.h>
>}
 

>...Jim

I do use OCI class with C++. I do have a problem. When I use the olon funtion from a Class, all goes fine. But when I call it from a dynamicly linked objectfile, I get a "Illegal Instruction" call from my application. Has anyone experienced this before, or has anymone used OCI calls with dynamicly loaded object files?

Regards Vincent Schenkelaars

--
     ____________________
 \  / . _   _  _   _  |
  \/ ( ( \ (_ (-' ( \ |
Received on Thu Aug 05 1993 - 15:05:18 CEST

Original text of this message