Skip to content

Commit 4459c96

Browse files
TylerMSFTTylerMSFT
authored andcommitted
Merge branch 'main' of https://github.com/MicrosoftDocs/cpp-docs-pr into alttext
2 parents 71f938f + f134ef2 commit 4459c96

192 files changed

Lines changed: 1163 additions & 290 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/atl/object-safety-classes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
description: "Learn more about: Object Safety Classes"
3-
title: "Object Safety Classes (ATL)| Microsoft Docs"
3+
title: Object Safety Classes (ATL)
44
ms.date: "11/04/2016"
55
ms.topic: "reference"
66
helpviewer_keywords: ["safety classes", "object safety classes"]

docs/atl/reference/atl-classes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
description: "Learn more about: ATL classes and structs"
3-
title: "ATL classes and structs| Microsoft Docs"
3+
title: ATL classes and structs
44
ms.date: "05/03/2018"
55
helpviewer_keywords: ["classes [C++], ATL", "ATL, classes"]
66
---

docs/build/reference/nmake-property-page.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
---
22
description: "Learn more about: NMake Property Page"
3-
title: "NMake Property Page (Windows C++)| Microsoft Docs"
3+
title: NMake Property Page (Windows C++)
44
ms.date: "11/04/2016"
55
f1_keywords: ["VC.Project.VCNMakeTool.ReBuildCommandLine", "VC.Project.VCNMakeTool.CleanCommandLine", "VC.Project.VCNMakeTool.Output", "VC.Project.VCNMakeTool.BuildCommandLine"]
66
helpviewer_keywords: ["NMake property page"]
77
ms.assetid: bd20cb52-9f1d-4240-b4fc-4f43205ac94b
88
---
99
# NMake Property Page
1010

11-
The **NMake** property page lets you specify build settings for NMake projects. (NMAKE is the Microsoft implementation of [Make](https://wikipedia.org/wiki/Make_(software)).)
11+
The **NMake** property page lets you specify build settings for *Makefile* projects. (NMAKE is the Microsoft implementation of [Make](https://wikipedia.org/wiki/Make_(software)).)
1212

13-
For more information about NMake projects, see [Creating a Makefile Project](creating-a-makefile-project.md). For non-Windows MakeFile projects, see [MakeFile Project Properties (Linux C++)](../../linux/prop-pages/makefile-linux.md), [General Project Properties (Android C++ Makefile)](/visualstudio/cross-platform/general-makefile-android-prop-page) or [NMake Properties (Android C++)](/visualstudio/cross-platform/nmake-android-prop-page).
13+
For more information about Makefile projects, see [Creating a Makefile Project](creating-a-makefile-project.md). For non-Windows Makefile projects, see [Makefile Project Properties (Linux C++)](../../linux/prop-pages/makefile-linux.md), [General Project Properties (Android C++ Makefile)](/visualstudio/cross-platform/general-makefile-android-prop-page) or [NMake Properties (Android C++)](/visualstudio/cross-platform/nmake-android-prop-page).
1414

15-
The **NMake** property page contains the following properties.
15+
The property page contains the following properties:
1616

17-
## UIElement List
17+
## General
1818

1919
- **Build Command Line**
2020

@@ -32,6 +32,8 @@ The **NMake** property page contains the following properties.
3232

3333
Specifies the name of the file that will contain the output for the command line. By default, this file name is based on the project name.
3434

35+
## IntelliSense
36+
3537
- **Preprocessor Definitions**
3638

3739
Specifies any preprocessor definitions that the source files use. The default value is determined by the current platform and configuration.
@@ -42,21 +44,21 @@ The **NMake** property page contains the following properties.
4244

4345
- **Forced Includes**
4446

45-
Specifies files that the preprocessor automatically processes even if they are not included in the project files.
47+
Specifies files that the preprocessor automatically processes even if they aren't included in the project files.
4648

4749
- **Assembly Search Path**
4850

49-
Specifies the directories where the .NET Framework searches when it trys to resolve .NET assemblies.
51+
Specifies the directories where the .NET Framework searches when it resolves .NET assemblies.
5052

5153
- **Forced Using Assemblies**
5254

5355
Specifies assemblies that the .NET Framework automatically processes.
5456

5557
- **Additional Options**
5658

57-
Specifies any additional compiler switches for IntelliSense to use when it parses C++ files.
59+
Specifies any extra compiler switches for IntelliSense to use when it parses C++ files.
5860

59-
For information about how to access the **NMake** property page, see [Set C++ compiler and build properties in Visual Studio](../working-with-project-properties.md).
61+
For information about how to access this property page, see [Set C++ compiler and build properties in Visual Studio](../working-with-project-properties.md).
6062

6163
For information about how to programmatically access members of this object, see <xref:Microsoft.VisualStudio.VCProjectEngine.VCNMakeTool>.
6264

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: "Learn more about: /WX (Treat linker warnings as errors)"
33
title: "/WX (Treat linker warnings as errors)"
4-
ms.date: 09/08/2022
4+
ms.date: 02/02/2023
55
f1_keywords: ["VC.Project.VCLinkerTool.TreatLinkerWarningsAsErrors"]
66
helpviewer_keywords: ["/WX linker option", "-WX linker option", "WX linker option"]
77
ms.assetid: e4ba97c7-93f7-43ae-a4bb-d866790926c9
@@ -12,23 +12,32 @@ Specifies whether to treat linker warnings as errors.
1212

1313
## Syntax
1414

15-
> **`/WX`**\[**`:NO`**]
15+
> **`/WX`**\[**`:NO`**]\
16+
> **`/WX`**\[**`:`***`nnnn`*\[**`,`***`nnnn`*...]]
1617
1718
## Remarks
1819

1920
The **`/WX`** linker option causes no output file to be generated if the linker generates a warning.
2021

2122
This option is similar to **`/WX`** for the compiler. For more information, see [/w, /W0, /W1, /W2, /W3, /W4, /w1, /w2, /w3, /w4, /Wall, /wd, /we, /wo, /Wv, /WX (Warning Level)](compiler-option-warning-level.md). However, specifying **`/WX`** for the compilation doesn't imply that **`/WX`** will also be in effect for the link phase; you must explicitly specify **`/WX`** for each tool.
2223

23-
By default, **`/WX`** isn't in effect. To treat linker warnings as errors, specify **`/WX`**. **`/WX:NO`** is the same as not specifying **`/WX`**.
24+
In Visual Studio 2022 and later versions, you can specify **`/WX`** with one or more comma-separated *`nnnn`* arguments, where *`nnnn`* is a number between 4000 and 4999. The linker treats the corresponding *`LNKnnnn`* warnings as errors.
25+
26+
By default, **`/WX`** isn't in effect. To treat linker warnings as errors, specify a **`/WX`** option. **`/WX:NO`** is the same as not specifying **`/WX`**, and overrides any previous **`/WX`** linker option.
2427

2528
### To set this linker option in the Visual Studio development environment
2629

2730
1. Open the project's **Property Pages** dialog box. For more information, see [Set compiler and build properties](../working-with-project-properties.md).
2831

29-
1. Select the **Configuration Properties** > **Linker** > **General** property page.
32+
1. To set or unset all warnings as errors, select the **Configuration Properties** > **Linker** > **General** property page.
33+
34+
1. Modify the **Treat Linker Warnings as Errors** property.
35+
36+
1. To set specific warnings as errors, select the **Configuration Properties** > **Linker** > **Command Line** property page.
37+
38+
1. In the **Additional Options** edit control, add *`/WX:warnings`*, where *`warnings`* is a comma-separated list of linker warning numbers.
3039

31-
1. Modify the **Treat Linker Warnings as Errors** property. Choose **OK** or **Apply** to save your changes.
40+
1. Choose **OK** or **Apply** to save your changes.
3241

3342
### To set this linker option programmatically
3443

@@ -37,4 +46,5 @@ By default, **`/WX`** isn't in effect. To treat linker warnings as errors, speci
3746
## See also
3847

3948
[MSVC linker reference](linking.md)\
40-
[MSVC linker options](linker-options.md)
49+
[MSVC linker options](linker-options.md)\
50+
[`/WX` compiler option](./compiler-option-warning-level.md)

0 commit comments

Comments
 (0)