4 Replies Latest reply on Jan 19, 2013 7:48 PM by 985919

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

    968944
      Hi,
      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-11.2.0.3.0.zip)
      - Included library path from OCCI download (11.2.0.3.0)
      - Added oraocci11d.lib in linker

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