Home » Developer & Programmer » Precompilers, OCI & OCCI » OCCI with Oracle 9i and Visual C++ 6
OCCI with Oracle 9i and Visual C++ 6 [message #196935] Mon, 09 October 2006 04:48
leonghub
Messages: 1
Registered: October 2006
Location: Singapore
Junior Member
Hi all,

I had faced some problems in linking an OCCI program in Visual C++ 6. The include and library paths have been set in the Visual Studio and system.

When trying to compile a sample program, the compiler shows these error messages:

----------------------------------------------------------------
Compiling...
occidml.cpp

Linking...
occidml.obj : error LNK2001: unresolved external symbol "public: static class oracle::occi::Environment * __cdecl oracle::occi::Environment::createEnvironment(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@W4Mode@123@PAXP6APAX1I@ZP6APAX11I@ZP6AX11@Z@Z)
occidml.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall oracle::occi::SQLException::~SQLException(void)" (??1SQLException@occi@oracle@@UAE@XZ)
occidml.obj : error LNK2001: unresolved external symbol "public: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall oracle::occi::SQLException::getMessage(void)const " (?getMessage@SQLExceptio
n@occi@oracle@@UBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)
occidml.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall oracle::occi::SQLException::getErrorCode(void)const " (?getErrorCode@SQLException@occi@oracle@@UBEHXZ)
occidml.obj : error LNK2001: unresolved external symbol "public: static void __cdecl oracle::occi::Environment::terminateEnvironment(class oracle::occi::Environment *)" (?terminateEnvironment@Environment@occi@oracle@@SAXPAV123@@Z)

Debug/occidml.exe : fatal error LNK1120: 5 unresolved externals
Error executing link.exe.

occidml.exe - 6 error(s), 0 warning(s)

----------------------------------------------------------------

Any help is reatly appreciated.

Thanks and have a nice week ahead!
Previous Topic: i need sample of DBHandler and DBconnection pool
Next Topic: how does oracle provide XA interface?
Goto Forum:
  


Current Time: Thu Mar 28 17:28:33 CDT 2024