How do I import the C++ 23 std library to g++

I’ve been playing with Bjarne Stroustrup’s Programming: Principles and Practice. Unfortunately, he wrote all the example programs in C++23, and the g++ compiler uses C++17. He provides some support material, and I can add the compiler directive -std=c++2b or -std=c++23 (or -std=c++20), but the programs still won’t compile. Microsoft has published a tutorial to import the C++23 std library into VS Code, but the instructions are for Windows, and I do not know how to translate the command ‘cl’ into linux. Has anybody imported the std library as modules? How is it done?

Please pardon me for being an ignorant passer-by. From my very little research I see that Microsoft cl tools is cl.exe. It is classed as a compiler and linker.

In Linux a programmer would use GCC as the compiler.

https://gcc.gnu.org/

But then, I am just an ignorant passer-by picking up scraps in an attempt at self education

Regards

You are correct. My problem is that they used that compiler command to install the std library modules in VS Code, and I want to get them (the modules). Apparently they are referring to files already on the Windows system. So I want to find out where/how they got them. Apparently, I’ll have to wait until next year, when the Standards Committee releases them for the general public. Bummer. The GCC package has been using C++ 17 since version 11 (current version is 14), but by adding a compiler flag (-std=c++2b) you can use some of the features of C++ 23. But not ‘import’.