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 IC67465 Status: Closed

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

product:
DB2 CONNECT / DB2CONNCT / 970 - 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:                                              * 
* DB2 V9.7 GA, FP 1, FP 2 users of all the operating systems   * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* LPWSTR, DWORD, WCHAR are most commonly used names in         * 
* manyapplications. Sqlcli.h also defines the above names.     * 
* Onceapplication includes sqlcli.h, application starts        * 
* gettingredeclaration error for the above names because the   * 
* above 3names are already defined in the application. So      * 
* sqlcli.hshould provide a way for the application to say if   * 
* the namesare already defined in the application so that      * 
* sqlcli.h willnot define them again.                          * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Upgrade to DB2 V9.7 FP 3                                     * 
****************************************************************
Local Fix:
available fix packs:
DB2 Version 9.7 Fix Pack 3 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 3a for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 4 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 5 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 6 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 7 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 8 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 9 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 9a for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 10 for Linux, UNIX, and Windows

Solution
First fixed in DB2 V9.7 FP 3
Workaround
not known / see Local fix
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
25.03.2010
16.09.2010
16.09.2010
Problem solved at the following versions (IBM BugInfos)
9.7.FP3
Problem solved according to the fixlist(s) of the following version(s)
9.7.0.3 FixList
9.7.0.3 FixList