Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Oracle OCCI libraries and Visual Studio 2005 - problem running some existing application

Oracle OCCI libraries and Visual Studio 2005 - problem running some existing application

Scheduled Pinned Locked Moved C / C++ / MFC
helpannouncementcsharpc++html
1 Posts 1 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    I am trying to run existing C++ application which uses Oracle OCCI libraries. For example in Linker->Input this project has specified oraocci10.lib. I would really appreciate if I get some help here because I am stuck on my own. I am using Visual Studio 2005. Here is list of actions I did. Please see if I missed something or did wrong. 1) Downloaded instant client packages 10.2.0.5 from here(1st and 5th packages- Basic Lite and SDK packages):http://www.oracle.com/technetwork/topics/winsoft-085727.html 2) Set environment variables (it seems there was some Oracle client already installed ? please see paths below): ORACLE_HOME: C:\app\g\product\11.2.0\client_2; TNS_ADMIN: C:\app\g\product\11.2.0\client_2\Network\Admin Some oracle client seems to have been installed here: C:\app\g\product\11.2.0\client_2?(Because path was there and files). 3) Set paths to oracle libraries in my project: C/C++->General->Include directories: D:\instantclient_10_2\sdk\include Linker->Additional Library directories: D:\instantclient_10_2\sdk\lib\msvc 4) In Code Generation->Runtime Library: Multi-threaded DLL (/MD), for release version. My application compiles but I get run time errors. When I run this application as a standalone exe (without compiling the executable, I was given that exe separately also) it works fine, connects with the database, etc. So something must be wrong how I configured Visual Studio against these OCCI libraries. I would really appreciate some help where I have gone wrong, as I am nearing point where I can't guess what I have done wrong. NB: Please note I have not downloaded anything except instant client packages like I mentioned above. Some Oracle Client installation was already on my computer - available on this path: C:\app\g\product\11.2.0. What am I missing? In particular some references I have seen mention downloading OCCI but like I said I didn't download OCCI - just instant client packages; and some Oracle client was already installed on my PC and available here: C:\app\g\product\11.2.0\client_2. Thanks in advance

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups