Overview
Features
Download
Documentation
Community
Add-Ons & Services

POCO library support IBM DB2 10.5

Please post support and help requests here.

POCO library support IBM DB2 10.5

Postby lovelystar » 12 Dec 2013, 12:45

I can't connect with my C++ project in VS2005 with using IBM DB2 Database. When debug the program meet error. So, Poco::Data::ODBC. connector support for IBM DB2 ODBC driver?

Thanks
lovelystar
 
Posts: 1
Joined: 12 Dec 2013, 11:18

Re: POCO library support IBM DB2 10.5

Postby rbahra » 09 Jan 2014, 00:21

hello. I am assuming this is DB2 LUW... typically I build the ODBC library with link to db2api.lib on windows.

Snippet from ODBC_VS100.VCXPROJ for my most recent compile:

<Link>
<AdditionalDependencies>db2api.lib;%(AdditionalDependencies)</AdditionalDependencies>
<OutputFile>..\..\bin\PocoDataODBC.dll</OutputFile>
<SuppressStartupBanner>true</SuppressStartupBanner>
<GenerateDebugInformation>false</GenerateDebugInformation>
<AdditionalLibraryDirectories>..\..\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<SubSystem>Console</SubSystem>
<OptimizeReferences>true</OptimizeReferences>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<ImportLibrary>..\..\lib\PocoDataODBC.lib</ImportLibrary>
<TargetMachine>MachineX86</TargetMachine>
</Link>


I would think that on VS2005 - you would need to modify the ODBC_VS80.vcproj file:

<Tool
Name="VCLinkerTool"
AdditionalDependencies="odbc32.lib odbccp32.lib" --> point to db2api.lib and recompile/link.
OutputFile="..\..\bin\PocoDataODBCd.dll"
LinkIncremental="2"
SuppressStartupBanner="true"
GenerateDebugInformation="true"


Let me know if this helps...
rbahra
 
Posts: 1
Joined: 09 Jan 2014, 00:09


Return to Support

Who is online

Users browsing this forum: No registered users and 2 guests