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
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
+
15
+
## Outside the Development Environment
16
+
17
+
You can set compiler (CL.exe) options:
18
+
19
+
-[On the command line](compiler-command-line-syntax.md)
20
+
21
+
-[In command files](cl-command-files.md)
22
+
23
+
-[In the CL environment variable](cl-environment-variables.md)
24
+
25
+
Options specified in the CL environment variable are used every time you invoke CL. If a command file is named in the CL environment variable or on the command line, the options specified in the command file are used. Unlike either the command line or the CL environment variable, a command file allows you to use multiple lines of options and filenames.
26
+
27
+
Compiler options are processed "left to right," and when a conflict is detected, the last (rightmost) option wins. The CL environment variable is processed before the command line, so in any conflicts between CL and the command line, the command line takes precedence.
-[Unicode Support in the Compiler and Linker](unicode-support-in-the-compiler-and-linker.md)
36
+
-
37
+
- C and C++ compiler options can be set either in the development environment or on the command line.
38
+
39
+
## In the Development Environment
40
+
41
+
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.
42
+
43
+
## Outside the Development Environment
44
+
45
+
You can set compiler (CL.exe) options:
46
+
47
+
-[On the command line](compiler-command-line-syntax.md)
48
+
49
+
-[In command files](cl-command-files.md)
50
+
51
+
-[In the CL environment variable](cl-environment-variables.md)
52
+
53
+
Options specified in the CL environment variable are used every time you invoke CL. If a command file is named in the CL environment variable or on the command line, the options specified in the command file are used. Unlike either the command line or the CL environment variable, a command file allows you to use multiple lines of options and filenames.
54
+
55
+
Compiler options are processed "left to right," and when a conflict is detected, the last (rightmost) option wins. The CL environment variable is processed before the command line, so in any conflicts between CL and the command line, the command line takes precedence.
56
+
57
+
## Additional Compiler Topics
58
+
59
+
-[Fast Compilation](fast-compilation.md)
60
+
61
+
-[CL Invokes the Linker](cl-invokes-the-linker.md)
18
62
19
63
For information on choosing the compiler host and target architecture, see [Configure Visual C++ for 64-bit, x64 targets](../../build/configuring-programs-for-64-bit-visual-cpp.md).
0 commit comments