Skip to content

Commit 8a284af

Browse files
TylerMSFTTylerMSFT
authored andcommitted
fix links
1 parent ab6741b commit 8a284af

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

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

Lines changed: 7 additions & 7 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 /std:c++latest /EHsc /c /nologo /W4 /c "%VCToolsInstallDir%\modules\std.ixx"
65+
cl /std:c++latest /EHsc /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).
@@ -79,14 +79,14 @@ The statement `import std;` or `import std.compat;` imports the standard library
7979
|---|---|
8080
| [`/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. |
8181
| [`/EHsc`](../build/reference/eh-exception-handling-model.md) | Use C++ exception handling, except for functions marked `extern "C"`. |
82-
| [`/c`](../build/reference/c-compile-without-linking.md) | Compile without linking, because we are just building the binary named module interface at this point. |
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. |
82+
| [`/W4`](../build/reference//compiler-option-warning-level.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. |
83+
| [`/c`](../build/reference/c-compile-without-linking.md) | Compile without linking, because we're just building the binary named module interface at this point. |
8484
85-
If your build scenario requires it, you can control the object file name and the named module interface file name with the following switches:
86-
- [`/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`.
87-
- [`/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`.
85+
You can control the object file name and the named module interface file name with the following switches:
86+
- [`/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're compiling the file `std.ixx`.
87+
- [`/ifcOutput`](../build/reference/ifc-output.md). For example, `/ifcOutput "somethingelse.ifc"`. In the example, the generated `ifc` file is `std.ifc` because we're compiling the file `std.ixx`.
8888
89-
1. Try importing the `std` library by creating a file named `importExample.cpp` with the following content:
89+
1. Importing the `std` library you just built by creating a file named `importExample.cpp` with the following content:
9090
9191
```cpp
9292
// requires /std:c++latest

0 commit comments

Comments
 (0)