Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: calling OCI-functions from C++

Re: calling OCI-functions from C++

From: Markus Schöpflin <schoepflin_at_ginit.de>
Date: 1997/05/26
Message-ID: <01bc69e9$37450d60$73a42dc2@Wellington.ginit.de>#1/1

> "unresolved external" for every OCI-function I use. Is there
> a special C++-hack for the header-file needed or something like
My guess:

The OCI header files don't specify the C linkage so you have to do the following.

extern "C" {
#include <any oci header files needed>
}  

-- 
Markus Schoepflin                         www:   http://www.ginit.de
GINIT Gesellschaft fuer integrierte       email: schoepflin_at_ginit.de
Informationssysteme mbH                   phone: +49 721 9 66 81 67
Vincenz-Priessnitz-Str. 1                 fax:   +49 721 9 66 81 11
D-76131 Karlsruhe, Germany
Received on Mon May 26 1997 - 00:00:00 CDT

Original text of this message

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