I downloaded OCCI for Visual C++ 8 (Windows) Download (zip). but still get the error. I also linked oraocci10.lib and oraocci10d.lib but still nogo. I did it in the project property page under linker->input->additional dependencies. The configuration I choosed was:
Is there a way to determine what is missing or what is causing the error, does one of you know how to solve the problem?
What I usually do is just create a new filter (a group), and just add the lib files in there (Right click and select add existing item.., just type *.* in the filename part of the dialog after you have selected the folder that the libraries are in, then select both the debug and the release library). You might get a warning that Visual Studio does not understand how to build these files, just ignore that.
Then select release build, right click on the oraocci10d.lib, select Properties and make sure you set excluded from Build to Yes.
For debug build it is the opposite, select oraocci10.lib, select Proeprties and make sure you set excluded from Build to Yes.
This works fine for me, I run VC++2005 8.0.50727-4200.
Thanks for you help. But there is something strange:
What I am trying to build is a Windows Forms Application what still a NOGO but when I am trying to build a Windows Console Application (what I do not really want) it goes OK except when using the oraocci10d.lib (is says it cannot find the file ??)
Could you post a bit of the code where you try to call for instance oracle::occi::createEnvironment. I'm just guessing here, but looking at the __clrcall in the unresolved tokens it might seem that it has wrongly assumed that you are calling managed code.
One of the above must have the setting : Excluded from build YES/NO depending if the configuration is "Debug" or "Release"
Step 1a (I don't know if this is necessary but it works without)
Project->Add->New Filter->Existing Item = C:\Program Files\Microsoft Visual Studio 8\VC\lib\MSVCPRT.lib
Project->Add->New Filter->Existing Item = C:\Program Files\Microsoft Visual Studio 8\VC\lib\MSVCRT.lib