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
Copy file name to clipboardExpand all lines: docs/build/building-c-cpp-programs.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ Note that here the compiler (cl.exe) automatically invokes the C++ preprocessor
35
35
36
36
Most real-world programs use some kind of *build system* to manage complexities of compiling multiple source files for multiple configurations (i.e. debug vs. release), multiple platforms (x86, x64, ARM, and so on), custom build steps, and even multiple executables that must be compiled in a certain order. You make settings in a build configuration file(s), and the build system accepts that file as input before it invoke the compiler. The set of source code files and build configuration files needed to build an executable file is called a *project*.
37
37
38
-
The following list shows various options for building C++ projects in Visual Studio:
38
+
The following list shows various options for Visual Studio Projects - C++:
39
39
40
40
- create a Visual Studio project by using the Visual Studio IDE and configure it by using property pages. Visual Studio projects produce programs that run on Windows. For an overview, see [Compiling and Building](/visualstudio/ide/compiling-and-building-in-visual-studio) in the Visual Studio documentation.
41
41
@@ -74,7 +74,7 @@ How to create, debug and deploy C/C++ DLLs (shared libraries) in Visual Studio.
74
74
[Building C/C++ Isolated Applications and Side-by-side Assemblies](building-c-cpp-isolated-applications-and-side-by-side-assemblies.md)
75
75
Describes the deployment model for Windows Desktop applications, based on the idea of isolated applications and side-by-side assemblies.
76
76
77
-
[Configure Visual C++ for 64-bit, x64 targets](configuring-programs-for-64-bit-visual-cpp.md)
77
+
[Configure C++ projects for 64-bit, x64 targets](configuring-programs-for-64-bit-visual-cpp.md)
78
78
How to target 64-bit x64 hardware with the MSVC build tools.
79
79
80
80
[Configure Visual C++ for ARM processors](configuring-programs-for-arm-processors-visual-cpp.md)
Copy file name to clipboardExpand all lines: docs/build/building-on-the-command-line.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ If you've installed the [Build Tools for Visual Studio 2017](https://go.microsof
44
44
45
45
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.
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.
Copy file name to clipboardExpand all lines: docs/build/creating-and-managing-visual-cpp-projects.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ To add third-party libraries, use the [vcpkg](../vcpkg.md) package manager. Run
33
33
34
34
## Set compiler options and other build properties
35
35
36
-
To configure build settings for a project, right-click on the project in **Solution Explorer** and choose **Properties**. For more information, see [Set compiler and build properties](working-with-project-properties.md).
36
+
To configure build settings for a project, right-click on the project in **Solution Explorer** and choose **Properties**. For more information, see [Set C++ compiler and build properties in Visual Studio](working-with-project-properties.md).
37
37
38
38
## Compile and run
39
39
@@ -47,7 +47,7 @@ In the Error List, you can press **F1** on a highlighted error to go to its docu
47
47
48
48
## In This Section
49
49
50
-
[Set compiler and build properties](working-with-project-properties.md)<br/>
50
+
[Set C++ compiler and build properties in Visual Studio](working-with-project-properties.md)<br/>
51
51
How to use Property Pages and Property Sheets to specify your project settings.
52
52
53
53
[Reference libraries and components at build time](adding-references-in-visual-cpp-projects.md)<br/>
When you create a new project in Visual Studio, a *precompiled header file* named "pch.h" is added to the project. (In earlier versions of Visual Studio, the file was called "stdafx.h".) The purpose of the file is to speed up the build process. Any stable header files, for example Standard Library headers such as `<vector>`, should be included here. The precompiled header is compiled only when it, or any files it includes, are modified. If you only make changes in your project source code, the build will skip compilation for the precompiled header.
11
11
12
-
The compiler options for precompiled headers are [/Y](y-precompiled-headers.md). In the project propery pages, the options are located under **Configuration Properties > C/C++ > Precompiled Headers**. You can choose to not use precompiled headers, and you can specify the header file name and the name and path of the output file.
12
+
The compiler options for precompiled headers are [/Y](reference/y-precompiled-headers.md). In the project propery pages, the options are located under **Configuration Properties > C/C++ > Precompiled Headers**. You can choose to not use precompiled headers, and you can specify the header file name and the name and path of the output file.
13
13
14
14
## Custom precompiled code
15
15
@@ -38,7 +38,7 @@ Precompiling requires planning, but it offers significantly faster compilations
38
38
39
39
Precompile code when you know that your source files use common sets of header files but don't include them in the same order, or when you want to include source code in your precompilation.
40
40
41
-
The precompiled-header options are [/Yc (Create Precompiled Header File)](yc-create-precompiled-header-file.md) and [/Yu (Use Precompiled Header File)](yu-use-precompiled-header-file.md). Use **/Yc** to create a precompiled header. When used with the optional [hdrstop](../../preprocessor/hdrstop.md) pragma, **/Yc** lets you precompile both header files and source code. Select **/Yu** to use an existing precompiled header in the existing compilation. You can also use **/Fp** with the **/Yc** and **/Yu** options to provide an alternative name for the precompiled header.
41
+
The precompiled-header options are [/Yc (Create Precompiled Header File)](reference/yc-create-precompiled-header-file.md) and [/Yu (Use Precompiled Header File)](reference/yu-use-precompiled-header-file.md). Use **/Yc** to create a precompiled header. When used with the optional [hdrstop](../preprocessor/hdrstop.md) pragma, **/Yc** lets you precompile both header files and source code. Select **/Yu** to use an existing precompiled header in the existing compilation. You can also use **/Fp** with the **/Yc** and **/Yu** options to provide an alternative name for the precompiled header.
42
42
43
43
The compiler option reference topics for **/Yu** and **/Yc** discuss how to access this functionality in the development environment.
44
44
@@ -48,7 +48,7 @@ Because PCH files contain information about the machine environment as well as m
48
48
49
49
## Consistency Rules for Per-File Use of Precompiled Headers
50
50
51
-
The [/Yu](yu-use-precompiled-header-file.md) compiler option lets you specify which PCH file to use.
51
+
The [/Yu](reference/yu-use-precompiled-header-file.md) compiler option lets you specify which PCH file to use.
52
52
53
53
When you use a PCH file, the compiler assumes the same compilation environment — one that uses consistent compiler options, pragmas, and so on — that was in effect when you created the PCH file, unless you specify otherwise. If the compiler detects an inconsistency, it issues a warning and identifies the inconsistency where possible. Such warnings do not necessarily indicate a problem with the PCH file; they simply warn you of possible conflicts. Consistency requirements for PCH files are described in the following sections.
54
54
@@ -120,7 +120,7 @@ This table lists compiler options that might trigger an inconsistency warning wh
120
120
121
121
## Using Precompiled Headers in a Project
122
122
123
-
Previous sections present an overview of precompiled headers: /Yc and /Yu, the /Fp option, and the [hdrstop](../../preprocessor/hdrstop.md) pragma. This section describes a method for using the manual precompiled-header options in a project; it ends with an example makefile and the code that it manages.
123
+
Previous sections present an overview of precompiled headers: /Yc and /Yu, the /Fp option, and the [hdrstop](../preprocessor/hdrstop.md) pragma. This section describes a method for using the manual precompiled-header options in a project; it ends with an example makefile and the code that it manages.
124
124
125
125
For another approach to using the manual precompiled-header options in a project, study one of the makefiles located in the MFC\SRC directory that is created during the default setup of Visual C++. These makefiles take a similar approach to the one presented in this section but make greater use of Microsoft Program Maintenance Utility (NMAKE) macros, and offer greater control of the build process.
126
126
@@ -139,7 +139,7 @@ Beginning at the top of the diagram, both STABLEHDRS and BOUNDRY are NMAKE macro
139
139
140
140
only if the precompiled header file (STABLE.pch) does not exist or if you make changes to the files listed in the two macros. In either case, the precompiled header file will contain code only from the files listed in the STABLEHDRS macro. List the last file you want precompiled in the BOUNDRY macro.
141
141
142
-
The files you list in these macros can be either header files or C or C++ source files. (A single PCH file cannot be used with both C and C++ modules.) Note that you can use the **hdrstop** macro to stop precompilation at some point within the BOUNDRY file. See [hdrstop](../../preprocessor/hdrstop.md) for more information.
142
+
The files you list in these macros can be either header files or C or C++ source files. (A single PCH file cannot be used with both C and C++ modules.) Note that you can use the **hdrstop** macro to stop precompilation at some point within the BOUNDRY file. See [hdrstop](../preprocessor/hdrstop.md) for more information.
143
143
144
144
Continuing down the diagram, APPLIB.obj represents the support code used in your final application. It is created from APPLIB.cpp, the files listed in the UNSTABLEHDRS macro, and precompiled code from the precompiled header.
145
145
@@ -210,7 +210,7 @@ NMAKE
210
210
NMAKE DEBUG=0
211
211
```
212
212
213
-
For more information on makefiles, see [NMAKE Reference](nmake-reference.md). Also see [MSVC Compiler Options](compiler-options.md) and the [MSVC Linker Options](linker-options.md).
213
+
For more information on makefiles, see [NMAKE Reference](reference/nmake-reference.md). Also see [MSVC Compiler Options](reference/compiler-options.md) and the [MSVC Linker Options](reference/linker-options.md).
214
214
215
215
## Example Code for PCH
216
216
@@ -298,5 +298,5 @@ int main( void )
298
298
299
299
## See Also
300
300
301
-
[C/C++ Building Reference](c-cpp-building-reference.md)<br/>
302
-
[MSVC Compiler Options](compiler-options.md)
301
+
[C/C++ Building Reference](reference/c-cpp-building-reference.md)<br/>
0 commit comments