home clear 64x64
en blue 200x116 de orange 200x116 info letter User
suche 36x36
Latest versionsfixlist
11.1.0.7 FixList
10.5.0.9 FixList
10.1.0.6 FixList
9.8.0.5 FixList
9.7.0.11 FixList
9.5.0.10 FixList
9.1.0.12 FixList
Have problems? - contact us.
Register for free anmeldung-x26
Contact form kontakt-x26

DB2 - Problem description

Problem IC67461 Status: Closed

LPWSTR, DWORD AND WCHAR GIVES REDECLARATION ERROR IN CLI APPLICATION
IF APPLICATION IS ALREADY HAVING THEM DEFINED

product:
DB2 CONNECT / DB2CONNCT / 950 - DB2
Problem description:
LPWSTR, DWORD, WCHAR are most commonly used names in many 
applications. Sqlcli.h also defines the above names. Once 
application includes sqlcli.h, application starts getting 
redeclaration error for the above names because the above 3 
names are already defined in the application. So sqlcli.h should 
provide a way for the application to say if the names are 
already defined in the application so that sqlcli.h will not 
define them again.
Problem Summary:
**************************************************************** 
* USERS AFFECTED:                                              * 
* All platforms                                                * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* LPWSTR, DWORD, WCHAR are most commonly used names            * 
* inmanyapplications. Sqlcli.h also defines the above          * 
* names.Onceapplication includes sqlcli.h, application         * 
* startsgettingredeclaration error for the above names because * 
* theabove 3names are already defined in the application.      * 
* Sosqlcli.hshouldprovide a way for the application to say     * 
* ifthe names arealready defined in the application so         * 
* thatsqlcli.h will notdefine them again.                      * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Upgrade to DB2 V9.5 FP 6                                     * 
****************************************************************
Local Fix:
available fix packs:
DB2 Version 9.5 Fix Pack 6a for Linux, UNIX, and Windows
DB2 Version 9.5 Fix Pack 7 for Linux, UNIX, and Windows
DB2 Version 9.5 Fix Pack 8 for Linux, UNIX, and Windows
DB2 Version 9.5 Fix Pack 9 for Linux, UNIX, and Windows
DB2 Version 9.5 Fix Pack 10 for Linux, UNIX, and Windows

Solution
First fixed in DB2 V9.5 FP 6
Workaround
not known / see Local fix
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
25.03.2010
26.04.2010
31.08.2010
Problem solved at the following versions (IBM BugInfos)
9.5.FP6
Problem solved according to the fixlist(s) of the following version(s)