IBM Support

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

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error 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.
    

Local fix

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                                     *
    ****************************************************************
    

Problem conclusion

  • First fixed in DB2 V9.7 FP 3
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC67465

  • Reported component name

    DB2 CONNECT

  • Reported component ID

    DB2CONNCT

  • Reported release

    970

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-03-25

  • Closed date

    2010-09-16

  • Last modified date

    2010-09-16

  • APAR is sysrouted FROM one or more of the following:

    IC67373

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    DB2 CONNECT

  • Fixed component ID

    DB2CONNCT

Applicable component levels

  • R970 PSY

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSEPGG","label":"DB2 for Linux, UNIX and Windows"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"9.7","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
16 September 2010