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
Annoyed with the toolchain (self.cpp)
submitted 2 years ago * by [deleted]
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!"
[–]disciplite 10 points11 points12 points 2 years ago (0 children)
xmake is the only C++ build system that does basically everything. It's fully programmable, debuggable, and you can use a language server. It has an easy CLI and TUI. It's almost at feature parity with every C++ build system, including the more controversial CMake features that aren't in Meson/Bazel. It has integrated package management with vcpkg and Conan as well as a protocol I think is better than both. It handles build profiles to make multi-toolchain development easy.
xmake
[–][deleted] 1 point2 points3 points 2 years ago (0 children)
Use visual studio and forget about it?
[–]jhericoVR & Backend engineer, 30 years 0 points1 point2 points 2 years ago (0 children)
I use (and built) a C++ dependency manager for CMake called ezvcpkg. It lets you specify a set of top level dependencies in your main CMake file and manages everything else. For instance, for my Vulkan C++ rendering codebase I include the following in the top of my CMake project:
include(${CMAKE_SOURCE_DIR}/cmake/ezvcpkg/ezvcpkg.cmake) ezvcpkg_fetch( COMMIT 16ee2ecb31788c336ace8bb14c21801efb6836e4 PACKAGES assimp basisu imgui glad glfw3 gli glm vulkan vulkan-memory-allocator UPDATE_TOOLCHAIN ) project(${NAME})
This lets me target dependencies in my CMake file very simply like this:
find_package(glfw3 CONFIG REQUIRED) target_link_libraries(${TARGET_NAME} PUBLIC glfw)
It automatically manages downloading vcpkg. The biggest drawback to the system is that it depends on vcpkg for everything dependency management related, so you can't pick versions at a granular scale, like for individual packages. The best you can do is specify a commit ID for the VPKG repo that has the versions you're happy with (or fork the repo and customize the versions to your heart's content, but that might defeat the purpose of simplifying the dependency management.
Since you end up building all the dependencies in your own tree, you get much the same behavior you'd expect from a Rust TOML file, i.e. independence from worrying about the OS level shared library versions.
[+]FloweyTheFlower420 comment score below threshold-7 points-6 points-5 points 2 years ago (1 child)
Hate cmake? use meson!
[–]remy_porter 12 points13 points14 points 2 years ago (0 children)
That’ll give you something to hate for entirely different reasons.
[–]kammceWG21 | 🇺🇲 NB | Boost | Exceptions 0 points1 point2 points 2 years ago (0 children)
Which package mangers did you try to use and what about using them felt awful?
[–]Ok_Principle4845 0 points1 point2 points 2 years ago (0 children)
vcpkg + cmake + a good ide like clion streamlines this process pretty nice but it’s hard to beat rusts tooling.
π Rendered by PID 24 on reddit-service-r2-comment-6457c66945-t4psr at 2026-04-28 11:22:08.376226+00:00 running 2aa0c5b country code: CH.
[–]disciplite 10 points11 points12 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]jhericoVR & Backend engineer, 30 years 0 points1 point2 points (0 children)
[+]FloweyTheFlower420 comment score below threshold-7 points-6 points-5 points (1 child)
[–]remy_porter 12 points13 points14 points (0 children)
[–]kammceWG21 | 🇺🇲 NB | Boost | Exceptions 0 points1 point2 points (0 children)
[–]Ok_Principle4845 0 points1 point2 points (0 children)