oracle c++ call interface error while including <occi.h>

From: sandeep <sandeep.tyagi_at_sify.com>
Date: 15 Mar 2004 23:21:30 -0800
Message-ID: <835092c0.0403152321.600b3e7b_at_posting.google.com>


hi all,
Actually i am developing an application in c++, which connect c++ with the oracle database and insert data into the oracle database using c++.For connecting c++ with oracle oracle provide us the library in which <occi.h> and <occi.lib>library file exist.So to develop that application we have to add this library in our program.Actually the problem ,which i am facing,is whenever i include <occi.h>file and compile the program the following error occured.Actually the file<occi.h> call other 4 file and the error is showing in these four file. Here in these file the templete function is defined in one file and decalared in another file.The sample of the error is given below.can anyone help me to solve that problem.

                                                        thank you

e:\oracle\ora92\oci\include\occicontrol.h(1132) : error C2995:
'getVector' : template function has already been defined
e:\oracle\ora92\oci\include\occicommon.h(425) : see declaration of
'getVector'

e:\oracle\ora92\oci\include\occicontrol.h(1235) : error C2995:
'setVector' : template function has already been defined
e:\oracle\ora92\oci\include\occicommon.h(525) : see declaration of
'setVector'

e:\oracle\ora92\oci\include\occicontrol.h(1280) : error C2995:
'getVector' : template function has already been defined
e:\oracle\ora92\oci\include\occicommon.h(474) : see declaration of
'getVector'

e:\oracle\ora92\oci\include\occiobjects.h(640) : error C2995:
'getVector' : template function has already been defined
e:\oracle\ora92\oci\include\occicommon.h(353) : see declaration of
'getVector'

e:\oracle\ora92\oci\include\occiobjects.h(737) : error C2995:
'setVector' : template function has already been defined
e:\oracle\ora92\oci\include\occicommon.h(379) : see declaration of
'setVector'

Error executing cl.exe.

Cpp1.obj - 5 error(s), 0 warning(s) Received on Tue Mar 16 2004 - 08:21:30 CET

Original text of this message