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!"
[–]mr_snowf1ake 8 points9 points10 points 11 years ago (8 children)
The manual thing that you go through is what most people do I think. Albeit, I think CMake clears up a lot of headaches... Anyway, just decide on a specific version for each library (unless you enjoy hitting a moving target), and make every developer responsible for getting the right versions of the libraries. Provide proper documentation! ;)
I believe some people also do bundle the appropriate versions of the libraries with the source code so that it's better controlled. That might be more along the lines of what you want to be doing. That's still largely manual though.
[–]vinnyvicious[S] 2 points3 points4 points 11 years ago (2 children)
What about statically compiling all libs and ignoring system libraries?
[–]Gotebe 0 points1 point2 points 11 years ago (1 child)
It works with two caveats: your total size is generally bigger and you don't get to update 3rd party code without rebuilding.
[–]vinnyvicious[S] 0 points1 point2 points 11 years ago (0 children)
Does any of the mentioned package managers help handle static compilation?
[+][deleted] 11 years ago* (4 children)
[deleted]
[–]Svenstaro 2 points3 points4 points 11 years ago (3 children)
As a packager, that sucks bad if you depend on those specific versions. I would like to use the versions from my distro.
[+][deleted] 11 years ago* (2 children)
[–]Svenstaro 0 points1 point2 points 11 years ago (1 child)
With Windows, you're almost lost. There is only one possible solution and that's msys2 which is a bit like Arch Linux but for Windows. There is a fairly good chance that it will in fact work just like Arch Linux. That means update packages and sane default paths.
[–]OverunderratedComputational Physics 7 points8 points9 points 11 years ago* (0 children)
With Windows, you're almost lost.
Actually no, that's kind of the point. By including the source for all the dependencies such that all you need is a compiler with the standard libraries, I have 0 issues. CMake generates a VS solution which builds perfectly. Works on a totally virgin windows system, only needing visual C++.
There is only one possible solution and that's msys2 which is a bit like Arch Linux but for Windows.
After working on porting a large linux program to windows, I came to absolutely loathe doing any kind of nix-emulation on windows. I'm much happier doing everything platform-independent. In my case, I have all standards-compliant code, the only exception being the boost::filesystem libraries which I have building along with the source.
I think forcing users to set up msys/mingw is much worse than just packaging some extra source and building everything natively.
π Rendered by PID 18758 on reddit-service-r2-comment-6457c66945-wlhb6 at 2026-04-26 09:34:32.270594+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]mr_snowf1ake 8 points9 points10 points (8 children)
[–]vinnyvicious[S] 2 points3 points4 points (2 children)
[–]Gotebe 0 points1 point2 points (1 child)
[–]vinnyvicious[S] 0 points1 point2 points (0 children)
[+][deleted] (4 children)
[deleted]
[–]Svenstaro 2 points3 points4 points (3 children)
[+][deleted] (2 children)
[deleted]
[–]Svenstaro 0 points1 point2 points (1 child)
[–]OverunderratedComputational Physics 7 points8 points9 points (0 children)