This content has been marked as final. Show 2 replies
You don't mention your OS or compiler. C++ is notoriously inflexible with it comes to libraries. The OCCI libraries must match the compiler you are using for your project.
For Windows: Double check to ensure your version of MSVC compiler matches the oraocci dll you are using. For example, Oracle 11.2 ships with libraries for msvc 8 and 9. If you are using msvc 10 (Visual Studio 10), you'll need to get the latest occi dlls. You can obtain them from:
For the past couple of years, we've been using a OCCI-MSVCgateway, a "shim" that we place between our C++ application and OCCI. This code is small and efficient, and it decouples our code from OCCI versions. Simply drop the gateway dll (plus the corresponding oraocci dll) in the oracle BIN directory in the PATH. I highly recommend it for any project using OCCI.
Thank you very much for answering my question.
Please find the following details.
OS : Windows XP SP3
Compiler : msvc8 (Visual Stdio 2005) compiler.
I have taken the run-time DLLs from folder "Oracle Instant Client 11.2 --> msvc8".
Edited by: 937549 on Jun 18, 2012 11:29 PM