Skip to content
This repository was archived by the owner on Sep 4, 2025. It is now read-only.
/ node-nodeRT Public archive
This repository was archived by the owner on Sep 4, 2025. It is now read-only.

"/ZW" (C++/CX) is incompatible with "/std:c++20" #6

@xan105

Description

@xan105

NodeRT package(s) are very old. They were made in the Win8 UWP era.
They require the /ZW flag (C++/CX | Windows Runtime Compilation).

Node v22 started to use /std:c++20.
That's an issue because it's incompatible with /ZW (C++/CX).

command line error D8016: '/ZW' and '/std:c++20' command-line options are incompatible

And this is unlikely to change because Microsoft has abandoned UWP/WinRT and recommends to move to C++/WinRT from C++/CX.

Altho forcing /std:c++17 worked before when building native addons for Node v22; Electron v32 requires it.

...\prebuildify\electron\32.0.0\include\node\v8config.h(13,1): error C1189: #error:  "C++20 or later required." 
[...\node-nodeRT\node_modules\@nodert-win10-rs4\windows.devices.lights\build\binding.vcxproj]
  (compiling source file '../_nodert_generated.cpp')

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is neededwontfixThis will not be worked on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions