Skip to content

Commit ffbf9b3

Browse files
committed
Update README.md
1 parent 5c49059 commit ffbf9b3

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,20 @@ The "scripts" subdirectory contains a C++ program which extracts all programs fr
1010

1111
## Compiling under Windows
1212

13-
All programs compile successfully under Windows with Visual Studio 2022 (v17.x or later).
13+
Most programs compile successfully under Windows with Visual Studio 2022 (v17.5 or later), some of the modules versions do not currently compile.
1414

15-
The supplied batch scripts `build-vs2022-headers.bat` and
16-
`build-vs2022-modules.bat` can be used to compile all of the programs within a Visual Studio command prompt, simply run:
15+
The supplied batch scripts `build-vs2022-headers.bat` and `build-vs2022-modules.bat` can be used to compile all of the programs within a Visual Studio command prompt, simply run:
1716

18-
```C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat```
17+
```
18+
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat
19+
```
1920

2021
or similar in a command window, or create a desktop link, and then run either of the build scripts.
2122

2223
Alternatively, to compile individual programs from within a Visual Studio command prompt run either (modules):
2324

2425
```
25-
cl /EHsc /std:c++latest /experimental:moodule /MD 00-example.cpp
26+
cl /EHsc /std:c++latest /MTd 00-example.cpp
2627
```
2728

2829
or (headers):
@@ -31,7 +32,7 @@ or (headers):
3132
cl /EHsc /std:c++latest 00-example.cpp
3233
```
3334

34-
substituting the correct file for `00-example.cpp` in either case.
35+
substituting the correct file for `00-example.cpp` in either case. Note that the modules versions need file `std.obj` in the current directory, see the build script for how to create this.
3536

3637
## Compiling under Linux
3738

@@ -49,4 +50,4 @@ clang++ -std=c++20 -o 00-example 00-example.cpp
4950

5051
substituting both occurrencies of `00-example` with the correct file name.
5152

52-
Alternatively, run one of the supplied shell scripts `build-gcc-headers.sh` or `build-clang-headers.sh` which are supplied in the "headers" subdirectory, or `build-clang-modules.sh` found in the "modules" subdirectory. (The last of these needs to change `import std.core;` to `import std;` for each source file before compilation, using the `sed` utility.)
53+
Alternatively, run one of the supplied shell scripts `build-gcc-headers.sh` or `build-clang-headers.sh` which are supplied in the "headers/build" subdirectory, or `build-clang-modules.sh` found in the "modules/build" subdirectory.

0 commit comments

Comments
 (0)