[issue45220] Windows builds sometimes fail on Azure and GitHub Action: fatal error RC1116: RC terminating after preprocessor errors

Eryk Sun report at bugs.python.org
Tue Nov 9 23:32:48 EST 2021


Eryk Sun <eryksun at gmail.com> added the comment:

Steve, instead of manually defining RT_MANIFEST, try including "winresrc.h" in the resource definition files. This SDK header includes "winuser.rh" (note the ".rh" extension), which, among other things, includes the following RC_INVOKED definitions from "winuser.h":

    #ifdef RC_INVOKED
    #define RT_MANIFEST                        24
    #define CREATEPROCESS_MANIFEST_RESOURCE_ID  1
    #define ISOLATIONAWARE_MANIFEST_RESOURCE_ID 2
    #define ISOLATIONAWARE_NOSTATICIMPORT_MANIFEST_RESOURCE_ID 3
    #define ISOLATIONPOLICY_MANIFEST_RESOURCE_ID 4
    #define ISOLATIONPOLICY_BROWSER_MANIFEST_RESOURCE_ID 5
    #define MINIMUM_RESERVED_MANIFEST_RESOURCE_ID 1   /* inclusive */
    #define MAXIMUM_RESERVED_MANIFEST_RESOURCE_ID 16  /* inclusive */

----------
nosy: +eryksun

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45220>
_______________________________________


More information about the Python-bugs-list mailing list