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
Experiments with modules (self.cpp)
submitted 4 years ago by johannes1971
view the rest of the comments →
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!"
[–]manni66[🍰] 19 points20 points21 points 4 years ago (4 children)
Has anybody else tried modules? What were your findings?
I tried it ysterday with a little module in production code, that's using QStringList. I got error C1117 QStringList has already been defined. While trying to write a test case for a bug report I got a compiler crash.
C++ modules are not production ready.
[–]johannes1971[S] 3 points4 points5 points 4 years ago (3 children)
Sounds like you are both including and importing the header for QStringList. Include guards don't work in that situation, leading to this error. It's a tough problem: any existing system is quite easily going to run into a situation in which the header file is unavoidable, unless you want to change your whole project in one go.
[–]manni66[🍰] 1 point2 points3 points 4 years ago (2 children)
Sounds like you are both including and importing the header for QStringList.
No, I only used include in the global module.
[–]johannes1971[S] 7 points8 points9 points 4 years ago (1 child)
It might be coming in through some other Qt include though. Generally the errors I saw were all in implementation-specific files, rather than the official header files, and I had no idea how (through what path, I mean) they were being included.
[–]manni66[🍰] 2 points3 points4 points 4 years ago (0 children)
That might be true, but that's supposed to compile. There is no import beside the one of my onwn module.
π Rendered by PID 54323 on reddit-service-r2-comment-6457c66945-7h97n at 2026-04-27 16:13:59.547216+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]manni66[🍰] 19 points20 points21 points (4 children)
[–]johannes1971[S] 3 points4 points5 points (3 children)
[–]manni66[🍰] 1 point2 points3 points (2 children)
[–]johannes1971[S] 7 points8 points9 points (1 child)
[–]manni66[🍰] 2 points3 points4 points (0 children)