locked
Visual Studio 16.7.3 compile error with Win SDK 10.0.19041.1: C2632 RRS feed

  • Question

  • Recently updated MS VS (from VS12) and SDK, started to recompile a legacy C++ app and receiving a C2632 error that appears to be thrown from SDK: 

    Output:

    1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\shared\rpcndr.h(193,23): error C2632: 'char' followed by 'int' is illegal

    Running out of ideas. 

    Did find this on net but not sure how to find the guilty header file amongst my output:

    It explains how to turn on 'show includes'

    Project Settings -> Configuration Properties -> C/C++ -> Advanced -> Show Includes

    @Nico238 Yes, thank you! I found out there was an old GtGui included. This caused the errors.

    Thursday, August 13, 2020 8:22 PM

All replies

  • Hi JimUPS,

    You could open rpcndr.h file with notepad as adminsitrator, then correct the declaration which is like this:

    typedef unsigned char int;

    And I have checked the file on my side,  'char' should be followed by 'boolean'. Please try to uninstall the win 10 SDK then re-install it.

    Best Regards,

    Dylan


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com

    Friday, August 14, 2020 8:07 AM