Skip to content

Commit 397e436

Browse files
author
mikeblome
committed
moved some compiler topics to reference
1 parent 9a7a1fe commit 397e436

File tree

240 files changed

+392
-417
lines changed

Some content is hidden

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

240 files changed

+392
-417
lines changed

docs/TOC.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# [Visual C++ in Visual Studio 2017](visual-cpp-in-visual-studio.md)
22
# [What's New for Visual C++ in Visual Studio 2017](what-s-new-for-visual-cpp-in-visual-studio.md)
3+
# [Overview of C++ development in Visual Studio](ide-and-tools-for-visual-cpp-development.md)
34
# Visual C++ Tutorial
45
## [Install C++ support in Visual Studio](build/vscpp-step-0-installation.md)
56
## [Create a C++ console app project](build/vscpp-step-1-create.md)
@@ -19,9 +20,9 @@
1920
# [Data Access](data/data-access-in-cpp.md)
2021
# [Text and Strings](text/text-and-strings-in-visual-cpp.md)
2122
# [vcpkg: A Package Manager for C++](vcpkg.md)
22-
# [IDE and Tools for Visual C++](ide/ide-and-tools-for-visual-cpp-development.md)
23-
# [Compilers and Build Tools](build/building-c-cpp-programs.md)
24-
# [Porting and Upgrading Visual C++ Code](porting/visual-cpp-porting-and-upgrading-guide.md)
23+
24+
# [Configure and compile C++ projects](build/building-c-cpp-programs.md)
25+
# [Port and Upgrade C++ Code](porting/visual-cpp-porting-and-upgrading-guide.md)
2526
# [Security Best Practices for C++](security/security-best-practices-for-cpp.md)
2627
## [Running as a Member of the Users Group](security/running-as-a-member-of-the-users-group.md)
2728
## [How User Account Control (UAC) Affects Your Application](security/how-user-account-control-uac-affects-your-application.md)

docs/atl/reference/default-atl-project-configurations.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The ATL Project Wizard creates two project configurations by default:
1818
## See Also
1919

2020
[Programming with ATL and C Run-Time Code](../../atl/programming-with-atl-and-c-run-time-code.md)<br/>
21-
[Working with Project Properties](../../build/working-with-project-properties.md)<br/>
21+
[Set compiler and build properties](../../build/working-with-project-properties.md)<br/>
2222
[Configuration Manager Dialog Box](/visualstudio/ide/understanding-build-configurations)<br/>
2323
[Compiling and Building](/visualstudio/ide/compiling-and-building-in-visual-studio)
2424

docs/build/TOC.md

+1-9
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# [Building C/C++ Projects](building-c-cpp-programs.md)
22
# [Visual Studio Projects - C++](creating-and-managing-visual-cpp-projects.md)
33
## [Set compiler and build properties](working-with-project-properties.md)
4-
### [Share or resuse Visual Studio project settings](create-reusable-property-configurations.md)
4+
### [Share or reuse Visual Studio project settings](create-reusable-property-configurations.md)
55
### [Project property inheritance](project-property-inheritance.md)
66
### [Modify properties and targets without changing the project file](modify-project-properties-without-changing-project-file.md)
77
## [Reference libraries and components at build time](adding-references-in-visual-cpp-projects.md)
@@ -47,14 +47,6 @@
4747
## [Walkthrough: Compiling a C++/CLI Program on the Command Line](walkthrough-compiling-a-cpp-cli-program-on-the-command-line.md)
4848
## [Walkthrough: Compiling a C++/CX Program on the Command Line](walkthrough-compiling-a-cpp-cx-program-on-the-command-line.md)
4949
## [Set the Path and Environment Variables for Command-Line Builds](setting-the-path-and-environment-variables-for-command-line-builds.md)
50-
## [Compiler Command-Line Syntax](compiler-command-line-syntax.md)
51-
### [CL Filename Syntax](cl-filename-syntax.md)
52-
### [Order of CL Options](order-of-cl-options.md)
53-
### [Return Value of cl.exe](return-value-of-cl-exe.md)
54-
## [CL Environment Variables](cl-environment-variables.md)
55-
## [CL Command Files](cl-command-files.md)
56-
## [Fast Compilation](fast-compilation.md)
57-
## [CL Invokes the Linker](cl-invokes-the-linker.md)
5850
# [Use MSBuild from the command line](msbuild-visual-cpp.md)
5951
## [Walkthrough: Using MSBuild to Create a C++ Project](walkthrough-using-msbuild-to-create-a-visual-cpp-project.md)
6052
## [How to: Use Build Events in MSBuild Projects](how-to-use-build-events-in-msbuild-projects.md)

docs/build/adding-references-in-visual-cpp-projects.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,4 +158,4 @@ The following properties are found on COM and .NET assembly references, and cann
158158
## See Also
159159

160160
[Property Pages](reference/property-pages-visual-cpp.md)<br>
161-
[Working with Project Properties](working-with-project-properties.md)
161+
[Set compiler and build properties](working-with-project-properties.md)

docs/build/building-on-the-command-line.md

+10-11
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ To work correctly, the tools require several specific environment variables to b
2222

2323
The required environment variables are specific to your installation and to the build architecture you choose, and might be changed by product updates or upgrades. Therefore, we strongly recommend that you use one of the installed command prompt shortcuts or command files instead of setting the environment variables in Windows yourself. For more information, see [Set the Path and Environment Variables for Command-Line Builds](setting-the-path-and-environment-variables-for-command-line-builds.md).
2424

25-
## Developer command prompt shortcuts
25+
## <a name="developer_command_prompt_shortcuts"></a> Developer command prompt shortcuts
2626

2727
The command prompt shortcuts are installed in a version-specific Visual Studio folder in your Start menu. Here's a list of the base command prompt shortcuts and the build architectures they support:
2828

@@ -36,16 +36,15 @@ The actual Start menu folder and shortcut names vary depending on the version of
3636

3737
If you've installed the [Build Tools for Visual Studio 2017](https://go.microsoft.com/fwlink/p/?linkid=875721) (which also includes the Visual Studio 2015 Update 3 compiler toolset), only the architecture-specific native or cross tools developer command prompt options are installed, and not the general **Developer Command Prompt** shortcut.
3838

39-
<a name="developer_command_prompt"></a>
40-
### To open a developer command prompt window
39+
## <a name="developer_command_prompt"></a> To open a developer command prompt window
4140

4241
1. On the desktop, open the Windows **Start** menu, and then scroll to find and open the folder for your version of Visual Studio, for example, **Visual Studio 2017**. In some older versions of Visual Studio, the shortcuts are in a subfolder called **Visual Studio Tools**.
4342

4443
1. In the folder, choose the **Developer Command Prompt** for your version of Visual Studio. This shortcut starts a developer command prompt window that uses the default build architecture of 32-bit, x86-native tools to build 32-bit, x86-native code. If you prefer a non-default build architecture, choose one of the native or cross tools command prompts to specify the host and target architecture.
4544

4645
An even faster way to open a developer command prompt window is to enter *developer command prompt* in the desktop search box, then choose the desired result.
4746

48-
## Developer command file locations
47+
## <a name="developer_command_prompt_file_locations"></a>Developer command file locations
4948

5049
If you prefer to set the build architecture environment in an existing command prompt window, you can use one of the command files (batch files) created by the installer to set the required environment. We only recommend you do this in a new command prompt window, and we do not recommend you later switch environments in the same command window. The location of these files depends on the version of Visual Studio you have installed, and on location and naming choices you made during installation. For Visual Studio 2017, the typical installation location on a 64-bit computer is in \Program Files (x86)\Microsoft Visual Studio\2017\\*edition*, where *edition* may be Community, Professional, Enterprise, BuildTools, or another name you supplied. For Visual Studio 2015, the typical installation location is in \Program Files (x86)\Microsoft Visual Studio 14.0.
5150

@@ -160,19 +159,19 @@ Describes how to start a command prompt window that has the required environment
160159

161160
[Compiler Command-Line Syntax](compiler-command-line-syntax.md)<br/>
162161

163-
[CL Filename Syntax](cl-filename-syntax.md)<br/>
162+
[CL Filename Syntax](reference/cl-filename-syntax.md)<br/>
164163

165-
[Order of CL Options](order-of-cl-options.md)<br/>
164+
[Order of CL Options](reference/order-of-cl-options.md)<br/>
166165

167-
[Return Value of cl.exe](return-value-of-cl-exe.md)<br/>
166+
[Return Value of cl.exe](reference/return-value-of-cl-exe.md)<br/>
168167

169-
[CL Environment Variables](cl-environment-variables.md)<br/>
168+
[CL Environment Variables](reference/cl-environment-variables.md)<br/>
170169

171-
[CL Command Files](cl-command-files.md)<br/>
170+
[CL Command Files](reference/cl-command-files.md)<br/>
172171

173-
[Fast Compilation](fast-compilation.md)<br/>
172+
[Fast Compilation](reference/fast-compilation.md)<br/>
174173

175-
[CL Invokes the Linker](cl-invokes-the-linker.md)<br/>
174+
[CL Invokes the Linker](reference/cl-invokes-the-linker.md)<br/>
176175

177176
## Related Sections
178177

docs/build/fast-compilation.md

-18
This file was deleted.

docs/build/how-to-configure-visual-cpp-projects-to-target-64-bit-platforms.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ You can use the project configurations in the Visual Studio IDE to set up C++ ap
1212

1313
1. Open the C++ project that you want to configure.
1414

15-
1. Open the property pages for that project. For more information, see [Working with Project Properties](working-with-project-properties.md).
15+
1. Open the property pages for that project. For more information, see [Set compiler and build properties](working-with-project-properties.md).
1616

1717
> [!NOTE]
1818
> For .NET projects, make sure that the **Configuration Properties** node, or one of its child nodes, is selected in the **\<Projectname> Property Pages** dialog box; otherwise, the **Configuration Manager** button remains unavailable.

docs/build/how-to-debug-a-release-build.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ You can debug a release build of an application.
1010

1111
### To debug a release build
1212

13-
1. Open the **Property Pages** dialog box for the project. For details, see [Working with Project Properties](working-with-project-properties.md).
13+
1. Open the **Property Pages** dialog box for the project. For details, see [Set compiler and build properties](working-with-project-properties.md).
1414

1515
1. Click the **C/C++** node. Set **Debug Information Format** to [C7 compatible (/Z7)](reference/z7-zi-zi-debug-information-format.md) or **Program Database (/Zi)**.
1616

docs/build/how-to-enable-a-64-bit-visual-cpp-toolset-on-the-command-line.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ When you install a C++ workload in the Visual Studio installer, it always instal
1717

1818
## Use a 64-bit hosted developer command prompt shortcut
1919

20-
When Visual Studio is installed on a 64-bit Windows operating system, additional developer command prompt shortcuts for the 64-bit, x64-hosted native and cross compilers are available. To access these command prompts on Windows 10, on the **Start** menu, open the folder for your version of Visual Studio, for example **Visual Studio 2017**, and then choose one of the x64 native or cross-tool developer command prompts. To access these command prompts on Windows 8, on the **Start** screen, open **All apps**. Under the heading for the installed version of Visual Studio, open the **Visual Studio** folder (in older versions of Visual Studio, it may be named **Visual Studio Tools**). On earlier versions of Windows, choose **Start**, expand **All Programs**, the folder for your version of **Visual Studio** (and on older versions of Visual Studio, **Visual Studio Tools**). For more information, see [Developer command prompt shortcuts](building-on-the-command-line.md#developer-command-prompt-shortcuts).
20+
When Visual Studio is installed on a 64-bit Windows operating system, additional developer command prompt shortcuts for the 64-bit, x64-hosted native and cross compilers are available. To access these command prompts on Windows 10, on the **Start** menu, open the folder for your version of Visual Studio, for example **Visual Studio 2017**, and then choose one of the x64 native or cross-tool developer command prompts. To access these command prompts on Windows 8, on the **Start** screen, open **All apps**. Under the heading for the installed version of Visual Studio, open the **Visual Studio** folder (in older versions of Visual Studio, it may be named **Visual Studio Tools**). On earlier versions of Windows, choose **Start**, expand **All Programs**, the folder for your version of **Visual Studio** (and on older versions of Visual Studio, **Visual Studio Tools**). For more information, see [Developer command prompt shortcuts](building-on-the-command-line.md#developer_command_prompt_shortcuts).
2121

2222
## Use Vcvarsall.bat to set a 64-bit hosted build architecture
2323

24-
Any of the native or cross compiler tools build configurations can be used on the command line by running the vcvarsall.bat command file. This command file configures the path and environment variables that enable a particular build architecture in an existing command prompt window. For specific instructions, see [Developer command files and locations](building-on-the-command-line.md#developer-command-files-and-locations).
24+
Any of the native or cross compiler tools build configurations can be used on the command line by running the vcvarsall.bat command file. This command file configures the path and environment variables that enable a particular build architecture in an existing command prompt window. For specific instructions, see [Developer command files and locations](building-on-the-command-line.md#developer_command_files_and_locations).
2525

2626
## See also
2727

docs/build/reference/TOC.md

+10-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
### [Files Created for CLR Projects](files-created-for-clr-projects.md)
1212
### [ATL Program or Control Source and Header Files](atl-program-or-control-source-and-header-files.md)
1313
### [MFC Program or Control Source and Header Files](mfc-program-or-control-source-and-header-files.md)
14-
### [Help Files](help-files-html-help.md)
15-
### [Help Files](help-files-winhelp.md)
16-
### [Hint Files](hint-files.md)
14+
### [HTML Help Files](help-files-html-help.md)
15+
### [Winhelp Help Files](help-files-winhelp.md)
16+
### [Hint Files for Intellisense](hint-files.md)
1717
### [Property Page XML Files](property-page-xml-files.md)
1818
### [.vcxproj and .props file structure](vcxproj-file-structure.md)
1919
### [Example project file](project-files.md)
@@ -44,6 +44,13 @@
4444
#### [HLSL Property Pages: Advanced](hlsl-property-pages-advanced.md)
4545
#### [HLSL Property Pages: Output Files](hlsl-property-pages-output-files.md)
4646
# [Compiling a C/C++ Program](compiling-a-c-cpp-program.md)
47+
## [Compiler Command-Line Syntax](compiler-command-line-syntax.md)
48+
### [CL Filename Syntax](cl-filename-syntax.md)
49+
### [Order of CL Options](order-of-cl-options.md)
50+
### [Return Value of cl.exe](return-value-of-cl-exe.md)
51+
## [CL Environment Variables](cl-environment-variables.md)
52+
## [CL Command Files](cl-command-files.md)
53+
## [CL Invokes the Linker](cl-invokes-the-linker.md)
4754
## [Compiler Options](compiler-options.md)
4855
### [Compiler Options Listed by Category](compiler-options-listed-by-category.md)
4956
### [Compiler Options Listed Alphabetically](compiler-options-listed-alphabetically.md)

docs/build/reference/advanced-manifest-tool.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ To access this property page dialog box, open the property pages for your projec
2525
[\<file> Element](/visualstudio/deployment/file-element-clickonce-application)<br>
2626
[ClickOnce Application Manifest](/visualstudio/deployment/clickonce-application-manifest)<br>
2727
[Manifest Tool Property Pages](manifest-tool-property-pages.md)<br>
28-
[Working with Project Properties](../working-with-project-properties.md)
28+
[Set compiler and build properties](../working-with-project-properties.md)

docs/build/reference/ai-specify-metadata-directories.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Only one directory can be passed to an **/AI** invocation. Specify one **/AI** o
2424

2525
### To set this compiler option in the Visual Studio development environment
2626

27-
1. Open the project's **Property Pages** dialog box. For details, see [Working with Project Properties](../working-with-project-properties.md).
27+
1. Open the project's **Property Pages** dialog box. For details, see [Set compiler and build properties](../working-with-project-properties.md).
2828

2929
1. Select the **Configuration Properties** > **C/C++** > **General** property page.
3030

@@ -37,5 +37,5 @@ Only one directory can be passed to an **/AI** invocation. Specify one **/AI** o
3737
## See Also
3838

3939
[Compiler Options](compiler-options.md)<br/>
40-
[Compiler Command Line Syntax](../compiler-command-line-syntax.md)<br/>
40+
[Compiler Command Line Syntax](compiler-command-line-syntax.md)<br/>
4141
[#using Directive](../../preprocessor/hash-using-directive-cpp.md)

docs/build/reference/allowbind-prevent-dll-binding.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ You can edit an existing DLL for /ALLOWBIND functionality with the [/ALLOWBIND](
1919

2020
### To set this linker option in the Visual Studio development environment
2121

22-
1. Open the project's **Property Pages** dialog box. For details, see [Working with Project Properties](../working-with-project-properties.md).
22+
1. Open the project's **Property Pages** dialog box. For details, see [Set compiler and build properties](../working-with-project-properties.md).
2323

2424
1. Expand **Configuration Properties**, **Linker**, and select **Command Line**.
2525

docs/build/reference/allowisolation-manifest-lookup.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ For more information, see [Manifest Files Reference](/windows/desktop/SbsCs/mani
2929

3030
### To set this linker option in the Visual Studio development environment
3131

32-
1. Open the project's **Property Pages** dialog box. For details, see [Working with Project Properties](../working-with-project-properties.md).
32+
1. Open the project's **Property Pages** dialog box. For details, see [Set compiler and build properties](../working-with-project-properties.md).
3333

3434
1. Select the **Configuration Properties** > **Linker** > **Manifest File** property page.
3535

docs/build/reference/analyze-code-analysis.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ For more information, see [Code Analysis for C/C++ Overview](/visualstudio/code-
7575

7676
### To set this compiler option in the Visual Studio development environment
7777

78-
1. Open the project's **Property Pages** dialog box. For details, see [Working with Project Properties](../working-with-project-properties.md).
78+
1. Open the project's **Property Pages** dialog box. For details, see [Set compiler and build properties](../working-with-project-properties.md).
7979

8080
1. Expand the **Configuration Properties** node.
8181

@@ -92,4 +92,4 @@ For more information, see [Code Analysis for C/C++ Overview](/visualstudio/code-
9292
## See Also
9393

9494
- [Compiler Options](compiler-options.md)
95-
- [Compiler Command Line Syntax](../compiler-command-line-syntax.md)
95+
- [Compiler Command Line Syntax](compiler-command-line-syntax.md)

docs/build/reference/appcontainer-windows-store-app.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ The /APPCONTAINER option was introduced in Windows 8.
2323

2424
### To set this linker option in Visual Studio
2525

26-
1. Open the project **Property Pages** dialog box. For more information, see [Working with Project Properties](../working-with-project-properties.md).
26+
1. Open the project **Property Pages** dialog box. For more information, see [Set compiler and build properties](../working-with-project-properties.md).
2727

2828
1. Expand the **Configuration Properties** node.
2929

docs/build/reference/arch-arm.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ When you use [/clr](clr-common-language-runtime-compilation.md) to compile, **/a
2929

3030
### To set the /arch:ARMv7VE or /arch:VFPv4 compiler option in Visual Studio
3131

32-
1. Open the **Property Pages** dialog box for the project. For more information, see [Working with Project Properties](../working-with-project-properties.md).
32+
1. Open the **Property Pages** dialog box for the project. For more information, see [Set compiler and build properties](../working-with-project-properties.md).
3333

3434
1. Select the **C/C++** folder.
3535

@@ -45,4 +45,4 @@ When you use [/clr](clr-common-language-runtime-compilation.md) to compile, **/a
4545

4646
[/arch (Minimum CPU Architecture)](arch-minimum-cpu-architecture.md)<br/>
4747
[Compiler Options](compiler-options.md)<br/>
48-
[Compiler Command Line Syntax](../compiler-command-line-syntax.md)
48+
[Compiler Command Line Syntax](compiler-command-line-syntax.md)

0 commit comments

Comments
 (0)