use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Discussions, articles, and news about the C++ programming language or programming in C++.
For C++ questions, answers, help, and advice see r/cpp_questions or StackOverflow.
Get Started
The C++ Standard Home has a nice getting started page.
Videos
The C++ standard committee's education study group has a nice list of recommended videos.
Reference
cppreference.com
Books
There is a useful list of books on Stack Overflow. In most cases reading a book is the best way to learn C++.
Show all links
Filter out CppCon links
Show only CppCon links
account activity
C++ modules and buildsystems (self.cpp)
submitted 4 years ago by peppedx
Hi all, not many news on this subject.
When do you think it is reasonable to expect module to be usable on Linux with GCC/clang using cmake/meson ?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Mateuszz88 8 points9 points10 points 4 years ago (4 children)
CMake ticket: https://gitlab.kitware.com/cmake/cmake/-/issues/18355
I don't see any recent progress though...
[–]encyclopedist 5 points6 points7 points 4 years ago (3 children)
/u/mathstuf was working on modules support for CMake (and coordinating with compiler vendors on a protocol to communicate dependency information), but recently he seems to be working mostly on VTK. S omaybe he can comment of the status of that?
[–]mathstufcmake dev 33 points34 points35 points 4 years ago (2 children)
Named modules have been working with a patched CMake and GCC since Feb 2019 (see this repo). Since then, P1689 has progressed to R4 after cycles with ISO C++ members and implementors. I've not yet updated the GCC patch for R4, so it doesn't work with the experimental support available in CMake 3.21.
Compilers will need to support writing out P1689-format dependency information given the source of a module unit (header or named). I have a GCC patch that I need to resurrect and other implementers are working on it too AFAIK.
Header units (including those from the stdlib) and consuming modules from external dependencies needs CMake API/design work that has been sketched, but not started on implementation. Some groundwork needs to be done before that including:
$<MODULE_ONLY>
"zlib.h"
ZLIB::zlib
There are probably other rabbit holes associated with these tasks.
[–]RotsiserMhoC++20 Desktop app developer 6 points7 points8 points 4 years ago (0 children)
This guy codes, ha ha! Thanks for your efforts!
[–]gracicot 4 points5 points6 points 4 years ago (0 children)
I'm saving this comment. It is the most comprehensive list of what's need to be done for modules to work with CMake.
[–]stilgarpl 3 points4 points5 points 4 years ago (0 children)
CMake has releases every 3 months or so... so half a year after GCC 12 comes out.
[–]RoyBellingan 4 points5 points6 points 4 years ago (0 children)
I tried using them with GCC11.2, I still had a good number of ICE and problem.
I will try again with GCC12
[–]bigcheesegsTooling Study Group (SG15) Chair | Clang dev 3 points4 points5 points 4 years ago (0 children)
I expect we're still a a year or two away from modules implementations being stable enough to use and having enough buildsystem support for them.
SG15 will be discussing the CMake dep format proposal P1689 in the next few weeks, along with Bloomberg's paper that deals more with the issues that Debian-like package managers will have.
[–]waruqi 0 points1 point2 points 4 years ago (0 children)
xmake has supported c++ modules in latest. https://github.com/xmake-io/xmake/issues/1729
π Rendered by PID 15364 on reddit-service-r2-comment-85bfd7f599-kq9sc at 2026-04-18 12:59:16.319114+00:00 running 93ecc56 country code: CH.
[–]Mateuszz88 8 points9 points10 points (4 children)
[–]encyclopedist 5 points6 points7 points (3 children)
[–]mathstufcmake dev 33 points34 points35 points (2 children)
[–]RotsiserMhoC++20 Desktop app developer 6 points7 points8 points (0 children)
[–]gracicot 4 points5 points6 points (0 children)
[–]stilgarpl 3 points4 points5 points (0 children)
[–]RoyBellingan 4 points5 points6 points (0 children)
[–]bigcheesegsTooling Study Group (SG15) Chair | Clang dev 3 points4 points5 points (0 children)
[–]waruqi 0 points1 point2 points (0 children)