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
In Visual Studio 2017 and later, the build system and compiler toolset are decoupled from the IDE. This means you can use Visual Studio to edit any existing code base with full IntelliSense support without having to convert that code into a Visual Studio project or use MSVC to compile it. For example, you can edit a CMake project in Visual Studio on your local machine, then compile it using g++ on a remote Linux machine.
11
+
You can use Visual Studio 2017 to edit, compile and build any C++ code base with full IntelliSense support without having to convert that code into a Visual Studio project or use MSVC to compile it. For example, you can edit a CMake project in Visual Studio on your local machine, then compile it using g++ on a remote Linux machine.
11
12
12
13
## C++ compilation
13
14
@@ -57,7 +58,10 @@ How to create, configure, and build C++ projects in Visual Studio using its nati
57
58
How to code, build, and deploy CMake projects in Visual Studio.
58
59
59
60
[Open Folder projects](non-msbuild-projects.md)
60
-
How to use Visual Studio to code, build and deploy projects based on any arbitrary build system, or no build system. at all.
61
+
How to use Visual Studio to code, build and deploy C++ projects based on any arbitrary build system, or no build system. at all.
How to use [NMAKE](reference/nmake-reference.md) to build makefile projects on Windows.
61
65
62
66
[Release builds](release-builds.md)
63
67
How to create and troubleshoot optimized release builds for deployment to end users.
@@ -68,41 +72,20 @@ Discusses how to use the C/C++ compiler and build tools directly from the comman
68
72
[Building DLLs in Visual Studio](dlls-in-visual-cpp.md)
69
73
How to create, debug and deploy C/C++ DLLs (shared libraries) in Visual Studio.
70
74
71
-
[Building C/C++ Isolated Applications and Side-by-side Assemblies](building-c-cpp-isolated-applications-and-side-by-side-assemblies.md)<br/>
75
+
[Building C/C++ Isolated Applications and Side-by-side Assemblies](building-c-cpp-isolated-applications-and-side-by-side-assemblies.md)
72
76
Describes the deployment model for Windows Desktop applications, based on the idea of isolated applications and side-by-side assemblies.
73
77
74
-
[C/C++ Building Reference](reference/c-cpp-building-reference.md)<br/>
75
-
Provides links to reference articles about program building in C++, compiler and linker options, and various build tools.
76
-
77
-
78
-
79
-
## Related Sections
80
-
81
-
[Compiling and Building](/visualstudio/ide/compiling-and-building-in-visual-studio)<br/>
82
-
Describes the Visual Studio build system and tools.
83
-
84
-
You can build C++ projects either in Visual Studio or on the command line. The Visual Studio IDE has built-in support for the default project system, [MSBuild](msbuild-visual-cpp.md), as well as for CMake. IDE integration with any other build system is enabled through JSON configuration files.
85
-
86
-
On the command line, you can use the C/C++ compiler (cl.exe) and linker (link.exe) to build simple projects. To build more complex projects on the command line, you can use MSBuild or [NMAKE](reference/nmake-reference.md).
78
+
[Configure Visual C++ for 64-bit, x64 targets](configuring-programs-for-64-bit-visual-cpp)
79
+
How to target 64-bit x64 hardware with the MSVC build tools.
87
80
88
-
For an overview about how to use Visual Studio to build projects and solutions, see [Compiling and Building](/visualstudio/ide/compiling-and-building-in-visual-studio).
89
-
90
-
## In This Section
91
-
92
-
[Visual Studio Projects (C++)](creating-and-managing-visual-cpp-projects.md)<br/>
#### [How to: Set LIB.EXE Options in the Visual Studio Development Environment](how-to-set-lib-exe-options-in-the-visual-studio-development-environment.md)
Visual C++ provides the following command-line tools for viewing or manipulating build output:
11
11
12
-
-[BSCMAKE.EXE](bscmake-reference.md) builds a browse information file (.bsc) that contains information about the symbols (classes, functions, data, macros, and types) in your program. You view this information in browse windows within the development environment. (A .bsc file can also be built in the development environment.)
13
12
14
13
-[LIB.EXE](lib-reference.md) is used to create and manage a library of Common Object File Format (COFF) object files. It can also be used to create export files and import libraries to reference exported definitions.
15
14
@@ -21,6 +20,10 @@ Visual C++ provides the following command-line tools for viewing or manipulating
21
20
22
21
-[ERRLOOK](value-edit-control.md), the Error Lookup utility, retrieves a system error message or module error message based on the value entered.
23
22
23
+
-[XDCMake](xdcmake-reference.md). A toolfor processing source code files that contain documentation comments marked up with XML tags.
24
+
25
+
-[BSCMAKE.EXE](bscmake-reference.md) (provided for backward compatibility only) builds a browse information file (.bsc) that contains information about the symbols (classes, functions, data, macros, and types) in your program. You view this information in browse windows within the development environment. (A .bsc file can also be built in the development environment.)
26
+
24
27
## See Also
25
28
26
29
[C/C++ Building Reference](c-cpp-building-reference.md)<br/>
Copy file name to clipboardExpand all lines: docs/build/reference/c-cpp-building-reference.md
+9-6Lines changed: 9 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,25 +1,28 @@
1
1
---
2
-
title: "C/C++ Building Reference"
3
-
ms.date: "11/04/2016"
2
+
title: "C/C++ Building Reference - Visual Studio"
3
+
description:"Reference content for C/C++ project system and build tools in Visual Studio."
4
+
ms.date: "12/10/2018"
4
5
helpviewer_keywords: ["compiling source code [C++], additional information", "cl.exe compiler [C++], building programs", "linker [C++], building reference", "builds [C++], additional information"]
5
6
ms.assetid: 100b4ccf-572c-4d1f-970c-fa0bc0cc0d2d
6
7
---
7
8
# C/C++ Building Reference
8
9
9
-
Visual C++ provides two ways of building a C/C++ program. The easiest (and most common) way is to [build within the Visual C++ development environment](../creating-and-managing-visual-cpp-projects.md). The other way is to [build from a command prompt using command-line tools](../building-on-the-command-line.md). In either case, you can create your source files using the Visual C++ source editor or a third-party editor of your choice.
10
+
Visual C++ provides two ways of building a C/C++ program. The easiest (and most common) way is to [build within the Visual Studio IDE](../creating-and-managing-visual-cpp-projects.md). The other way is to [build from a command prompt using command-line tools](../building-on-the-command-line.md). In either case, you can create and edit your source files using Visual Studio or a third-party editor of your choice.
10
11
11
12
## In This Section
12
13
13
-
[MSBuild Overview for C++ projects](msbuild-visual-cpp-overview.md)
14
+
[MSBuild reference for C++ projects](msbuild-visual-cpp-overview.md)
14
15
15
16
[Compiling a C/C++ Program](compiling-a-c-cpp-program.md)<br/>
16
-
Describes the compiler, which creates an object file containing machine code, linker directives, sections, external references, and function/data names.
17
+
Describes the MSVC compiler, which creates an object file containing machine code, linker directives, sections, external references, and function/data names.
17
18
18
19
[Linking](linking.md)<br/>
19
20
Describes the linker, which combines code from the object files created by the compiler and from statically linked libraries, resolves the name references, and creates an executable file.
20
21
22
+
[Unicode Support in the Compiler and Linker](unicode-support-in-the-compiler-and-linker.md)
23
+
21
24
[C/C++ Build Tools](c-cpp-build-tools.md)<br/>
22
-
Provides the following command-line tools for viewing or manipulating build output:
@@ -10,7 +11,7 @@ C and C++ compiler options can be set either in the Visual Studio IDE or on the
10
11
11
12
## In Visual Studio
12
13
13
-
You can set compiler options for each project in its **Property Pages** dialog box. In the left pane, select **Configuration Properties**, **C/C++** and then choose the compiler option category. The topic for each compiler option describes how it can be set and where it is found in the development environment. See [Compiler Options](compiler-options.md) for a complete list.
14
+
You can set compiler options for each project in its Visual Studio **Property Pages** dialog box. In the left pane, select **Configuration Properties**, **C/C++** and then choose the compiler option category. The topic for each compiler option describes how it can be set and where it is found in the development environment. See [Compiler Options](compiler-options.md) for a complete list.
0 commit comments