I'm having a hard time with this. I'm trying to implement OCCI within my application. Error I'm getting is: Error 1 error LNK2019: unresolved external symbol "public: static class oracle::occi::Environment * __cdecl oracle::occi::Environment::createEnvironment(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,enum oracle::occi::Environment::Mode,void *,void * (__cdecl*)(void *,unsigned int),void * (__cdecl*)(void *,void *,unsigned int),void (__cdecl*)(void *,void *))" (?createEnvironment@Environment@occi@oracle@@SAPAV123@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0W4Mode@123@PAXP6APAX2I@ZP6APAX22I@ZP6AX22@Z@Z) referenced in function "private: bool __thiscall ServerDataLoader::getPreSuffixesFromDB(void)" (?getPreSuffixesFromDB@ServerDataLoader@@AAE_NXZ) P:\code\VizTool\VizPortal\DwgDgnConverter\ServerDataLoader.obj DwgDgnConverter Error 2 error LNK1120: 1 unresolved externals P:\code\VizTool\VizPortal\Debug\DwgDgnConverter.exe 1 1 DwgDgnConverter
Yes, it looks like linking problem,...but for me everything seems set-up.
- Included header files (from instantclient-sdk-windows.x64-22.214.171.124.0.zip)
- Included library path from OCCI download (126.96.36.199.0)
- Added oraocci11d.lib in linker
Please, what am I doing wrong?
Millions of thanks for any kind of feedback ;-)
thank you for the reply.
I read on web that it should be possible to run it also on vs2012. Another thing is that I was able to connectto my Oracle DB with VS2012 Tolls--Connect To Database (there I needed to install the ODTwithODAC1120320_32bit package). Maybe those two are fighting with each other? Or do I need to have some extra Path variables for OCCI?
Take a look at this link - thats all you should need to do
I'd recommend going with VS2010 - whenever you get a problem with VS2012 you'll never be sure.
Have you succeeded? I tried vs2012 and it passed compilation, but gave the run-time error of _crtisvalidheappointer. But the same code runs well with vs2010. I think Oracle needs to publish the new patch for vs2012