TGViewer
C++ - Reddit C++ - Reddit @r_cpp · 227 subscribers
Post #23978 16
Complete working guide for C++23 import std; with GCC 15.1 and CMake 4.1

After days of struggling with "unknown compiled module interface" errors, I finally got import std; working and documented the complete solution.



The key missing piece that most guides don't mention: CXX_MODULE_STD 1



Complete guide: https://github.com/JRASoftware/cpp23-import-std-guide



Hope this saves others the same pain!

https://redd.it/1nxz7x9
@r_cpp
GitHub GitHub - JRASoftware/cpp23-import-std-guide: Complete guide for C++23 import std; with GCC 15.1 and CMake 4.1. Includes the critical… Complete guide for C++23 import std; with GCC 15.1 and CMake 4.1. Includes the critical CXX_MODULE_STD property that most guides miss. - JRASoftware/cpp23-import-std-guide
More from @r_cpp
  1. Oct 17, 2026The Double Headed Stack Allocator – The blog at the bottom of the sea https://blog.demofox…
  2. Oct 17, 2026Barry's C++ Blog - Generating Operator Functions https://brevzin.github.io/c++/2026/10/14/…
  3. Oct 17, 2026MSVC Build Tools Version 14.52 Release Candidate Now Available https://devblogs.microsoft.…
  4. Oct 17, 2026C++ futures part 4: What if I want an immediate on-thread std::async? https://devblogs.mic…
  5. Oct 14, 2026I tested whether a coding agent would use C++23 ranges without being told Blog post: https…
  6. Oct 14, 2026C++ futures part 1: The mental model https://devblogs.microsoft.com/oldnewthing/20261012-0…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →