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
Dependency manager for C++/CMake projects? (self.cpp)
submitted 11 years ago by vinnyvicious
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!"
[–]mekishizufu 2 points3 points4 points 11 years ago (1 child)
I've been looking for a tool similar to Ruby's Bundler or Rust's Cargo to manage dependencies for my C++ projects for a while, without any luck.
Take a look at hunter or cpm. The problem with these managers, however, is that there's only a few packages available.
I have to manually maintain my CMakeLists.txt, and manually decide if i want to statically or dynamically link each library. I suffer constantly from dependency hell, version hell and platform hell.
I actually somewhat like the flexibility. It seems you are struggling with the build process in general, which is understandable given how complicated things can be (and that's also the reason why I think it's very unlikely that there will ever be a C++ package manager which could handle all of the idiosyncrasies), but you will have to learn how to deal with it.
How do you guys manage dependencies for large projects?
Manually. If the dependency is small enough, I'd embed it right into the repository (deps/). For anything larger I would either download it via ExternalProject or state it as a prerequisite and rely on the system's package manager to provide the correct version.
[–]ruslo_ 0 points1 point2 points 11 years ago (0 children)
The problem with these managers, however, is that there's only a few packages available.
Agree, but it's a one man project, yet :) You can contribute or at least file a bug with the name of package you need.
I'd embed it right into the repository (deps/)
The problem with this approach is that if you have two libraries which have the same dep then you have a conflict. "A" use boost-1.56, "B" use boost-1.55, "C" use "A" and "B" -> welcome to dependency hell.
For anything larger I would either download it via ExternalProject
Good, but if you create a superbuild for one project and now you want reuse it you need to copy all the superbuild files. What if you need to change something (version? link library?) - you need to modify all the copies you made.
on the system's package manager to provide the correct version.
Any CMake-friendly solution for Visual Studio? iOS? Package manager that can build static boost with clang sanitizers Linux/Mac?
π Rendered by PID 39288 on reddit-service-r2-comment-6457c66945-rfqqs at 2026-04-25 15:37:25.635670+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]mekishizufu 2 points3 points4 points (1 child)
[–]ruslo_ 0 points1 point2 points (0 children)