Skip to content

Commit 3454863

Browse files
TylerMSFTTylerMSFT
authored andcommitted
tidy
1 parent ab8b940 commit 3454863

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

docs/cpp/tutorial-import-stl-named-module.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ The statement `import std;` or `import std.compat;` imports the standard library
6262
1. Compile the `std` named module with the following command:
6363

6464
```cmd
65-
cl /c /nologo /std:c++latest /EHsc /W4 "%VCToolsInstallDir%\modules\std.ixx"
65+
cl /std:c++latest /EHsc /c /nologo /W4 /c "%VCToolsInstallDir%\modules\std.ixx"
6666
```
6767
6868
If you get errors, ensure that you're using the correct version of the command prompt. If you're still having issues, please file a bug at [Visual Studio Developer Community](https://developercommunity.visualstudio.com/home).
@@ -80,13 +80,13 @@ The statement `import std;` or `import std.compat;` imports the standard library
8080
| [`/c`](../build/reference/c-compile-without-linking.md) | Compile without linking, because we are just building the binary named module interface at this point. |
8181
| [`/std:c++:latest`](../build/reference/std-specify-language-standard-version.md) | Use the latest version of the C++ language standard and library. Although module support is available under `/std:c++20`, you need the latest standard library to get support for standard library named modules. |
8282
| [`/EHsc`](../build/reference/eh-exception-handling-model.md) | Use C++ exception handling, except for functions marked `extern "C"`. |
83-
| [`/W4`](../build/reference/w4-enable-all-warnings.md) | Enable all warnings. |
83+
| [`/W4`](../build/reference/w4-enable-all-warnings.md) | Using /W4 is generally recommended, especially for new projects because it enables all level 1, level 2, level 3, and most level 4 (informational) warnings, which can help you catch potential issues early. It essentially provides lint-like warnings that can help ensure the fewest possible hard-to-find code defects. |
8484
85-
As an aside, you can control the object file name and the named module interface file name with the following switches:
85+
You can control the object file name and the named module interface file name with the following switches:
8686
- [`/Fo`](../build/reference/fo-object-file-name.md). For example, `/Fo "somethingelse.obj"`. By default, the compiler creates a file name that is the same as the module name you are compiling. In the example, the output name is `std.obj` because we are compiling the file `std.ixx`.
8787
- [`/ifcOutput`](../build/reference/ifcoutput-named-module-interface-file-name.md). For example, `/ifcOutput "somethingelse.ifc"`. In the example, the generated `ifc` file is `std.ifc` because we are compiling the file `std.ixx`.
8888
89-
1. Try out importing the `std` library by creating a file named `importExample.cpp` with the following content:
89+
1. Try importing the `std` library by creating a file named `importExample.cpp` with the following content:
9090
9191
```cpp
9292
// requires /std:c++latest

0 commit comments

Comments
 (0)