Hacker News new | past | comments | ask | show | jobs | submit login

Is there some sort of standard / commonly accepted way to manage packages for c++? In python its as simple as pip install + import, and the community is generally in agreement with the best library to use with good documentation. Is there some sort of similar tools I can use for c++?



> Is there some sort of standard / commonly accepted way to manage packages for c++?

As others have pointed out, CMake is the de facto standard in C++. However, a combination of CMake with Conan seems to take care of most of anyone's needs. The downside is that the availability of C++ packages in Conan tends to be very limited.


Your system package manager, usually, along with something to detect/configure dependencies (autotools, CMake, etc). CMake can be set up to automatically download missing dependencies in some cases, too, and I think there are some other build systems that provide this sort of functionality. But there's not some standard packaging system a la pip or cargo or the like.


There is build2[1] and libcurl is available[2] from cppget.org, its package repository.

[1] https://build2.org

[2] https://cppget.org/libcurl


There are many. But none of them are considered the ‘default’ way to do it. vcpkg[1] by Microsoft is the newest kid on the block which is gaining some traction. Apart from that Conan[2] seems to be the (relatively) popular one. There’s also Hunter[3] which builds on top of CMake.

[1]: https://github.com/microsoft/vcpkg [2]: https://conan.io [3]: https://github.com/cpp-pm/hunter




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: