You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compiles source code to support Microsoft C++ component extensions C++/CX for the creation of Universal Windows Platform (UWP) apps.
12
11
13
-
When you use **/ZW** to compile, always specify **/EHsc** as well.
12
+
When you use **`/ZW`** to compile, always specify **`/EHsc`** as well.\
13
+
**`/ZW`** isn't compatible with **`/std:c++20`**.
14
14
15
15
## Syntax
16
16
@@ -21,24 +21,24 @@ When you use **/ZW** to compile, always specify **/EHsc** as well.
21
21
22
22
## Arguments
23
23
24
-
**nostdlib**<br/>
25
-
Indicates that Platform.winmd, Windows.Foundation.winmd, and other default Windows metadata (.winmd) files are not automatically included in the compilation. Instead, you must use the [/FU (Name Forced #using File)](fu-name-forced-hash-using-file.md) compiler option to explicitly specify Windows metadata files.
24
+
**`nostdlib`**\
25
+
Indicates that `Platform.winmd`, `Windows.Foundation.winmd`, and other default Windows metadata (`.winmd`) files aren't automatically included in the compilation. Instead, you must use the [`/FU` (Name Forced #using File)](fu-name-forced-hash-using-file.md) compiler option to explicitly specify Windows metadata files.
26
26
27
27
## Remarks
28
28
29
-
When you specify the **/ZW** option, the compiler supports these features:
29
+
When you specify the **`/ZW`** option, the compiler supports these features:
30
30
31
31
- The required metadata files, namespaces, data types, and functions that your app requires to execute in the Windows Runtime.
32
32
33
33
- Automatic reference-counting of Windows Runtime objects, and automatic discarding of an object when its reference count goes to zero.
34
34
35
-
Because the incremental linker does not support the Windows metadata included in .obj files by using the **/ZW** option, the deprecated [/Gm (Enable Minimal Rebuild)](gm-enable-minimal-rebuild.md) option is incompatible with **/ZW**.
35
+
Because the incremental linker doesn't support the Windows metadata included in .obj files by using the **`/ZW`** option, the deprecated [/Gm (Enable Minimal Rebuild)](gm-enable-minimal-rebuild.md) option is incompatible with **`/ZW`**.
36
36
37
37
For more information, see [Visual C++ Language Reference](../../cppcx/visual-c-language-reference-c-cx.md).
0 commit comments