This discussion is archived
4 Replies Latest reply: Jan 19, 2013 11:48 AM by 985919 RSS

OCCI Link problem (Error LNK2019: unresolved external symbol) in VS2012

968944 Newbie
Currently Being Moderated
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
- Included library path from OCCI download (
- Added oraocci11d.lib in linker

Please, what am I doing wrong?
Millions of thanks for any kind of feedback ;-)


  • Correct Answers - 10 points
  • Helpful Answers - 5 points