Skip to content

Commit 4027cb6

Browse files
TylerMSFTTylerMSFT
andauthored
note an incompatibility (#4958)
* note an incompatibility * fix flag case * make bold to match --------- Co-authored-by: TylerMSFT <[email protected]>
1 parent 4108b02 commit 4027cb6

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
---
22
description: "Learn more about: /ZW (Windows Runtime Compilation)"
33
title: "/ZW (Windows Runtime Compilation)"
4-
ms.date: "04/08/2019"
4+
ms.date: 06/22/2023
55
f1_keywords: ["VC.Project.VCCLCompilerTool.CompileAsWinRT", "/zw"]
66
helpviewer_keywords: ["/ZW", "-ZW compiler option", "/ZW compiler option", "-ZW", "Windows Runtime compiler option"]
7-
ms.assetid: 0fe362b0-9526-498b-96e0-00d7a965a248
87
---
9-
# /ZW (Windows Runtime Compilation)
8+
# `/ZW` (Windows Runtime Compilation)
109

1110
Compiles source code to support Microsoft C++ component extensions C++/CX for the creation of Universal Windows Platform (UWP) apps.
1211

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`**.
1414

1515
## Syntax
1616

@@ -21,24 +21,24 @@ When you use **/ZW** to compile, always specify **/EHsc** as well.
2121

2222
## Arguments
2323

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

2727
## Remarks
2828

29-
When you specify the **/ZW** option, the compiler supports these features:
29+
When you specify the **`/ZW`** option, the compiler supports these features:
3030

3131
- The required metadata files, namespaces, data types, and functions that your app requires to execute in the Windows Runtime.
3232

3333
- Automatic reference-counting of Windows Runtime objects, and automatic discarding of an object when its reference count goes to zero.
3434

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`**.
3636

3737
For more information, see [Visual C++ Language Reference](../../cppcx/visual-c-language-reference-c-cx.md).
3838

3939
## Requirements
4040

4141
## See also
4242

43-
[MSVC Compiler Options](compiler-options.md)<br/>
43+
[MSVC Compiler Options](compiler-options.md)\
4444
[MSVC Compiler Command-Line Syntax](compiler-command-line-syntax.md)

0 commit comments

Comments
 (0)