Re: C++ and OCI

From: Jim Vopni <jim_at_ursa.sis.yorku.ca>
Date: Wed, 4 Aug 1993 17:05:22 GMT
Message-ID: <JIM.93Aug4120522_at_ursa.sis.yorku.ca>


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


Jim Vopni					Suite D, WOB York University
SIS Development					4700 Keele St

(416) 736-5954 North York, Ont
FAX (416) 736-5957 M3J 1P3
--

---------------
Jim Vopni						Suite D, WOB York University
SIS Development						4700 Keele St

(416) 736-5954 North York, Ont
FAX (416) 736-5957 M3J 1P3
Received on Wed Aug 04 1993 - 19:05:22 CEST

Original text of this message