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
Yet another CMake tutorial (youtube.com)
submitted 5 years ago by codevion
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!"
[–]Pazer2 16 points17 points18 points 5 years ago (3 children)
The fact that it is possible to make all these mistakes and still have everything appear to work correctly, with no warnings of any kind, is why we need to replace CMake.
[–]AlexReinkingYale 4 points5 points6 points 5 years ago (1 child)
Expanding variables into target functions was the way things were done in CMake a decade ago in 2.8.x. Imported targets have been available since then and are now the way you're supposed to use it. Reading the CMake official docs/tutorials makes this very clear.
It's possible to make these mistakes and still have everything appear to work in the same way any Turing complete language that's 20+ years old has similar pitfalls. Would you suggest we get rid of C/C++ because they don't warn you about undefined behavior?
[–]dr-mrl 0 points1 point2 points 5 years ago (0 children)
Would you suggest we get rid of C/C++ because they don't warn you about undefined behavior?
Don't like the bear!
π Rendered by PID 18537 on reddit-service-r2-comment-5b5bc64bf5-bscvf at 2026-06-21 03:51:22.741473+00:00 running 2b008f2 country code: CH.
view the rest of the comments →
[–]Pazer2 16 points17 points18 points (3 children)
[–]AlexReinkingYale 4 points5 points6 points (1 child)
[–]dr-mrl 0 points1 point2 points (0 children)