3 ms·
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 general
by ackbar03 6y ago
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++?
- reanimus 6y agoYour 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.
- barumi 6y ago> 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.
- boris 6y agoThere is build2[1] and libcurl is available[2] from cppget.org, its package repository. [1] https://build2.org https://build2.org [2] https://cppget.org/libcurl https://cppget.org/libcurl
- srikz 6y agoThere 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 https://github.com/microsoft/vcpkg [2]: https://conan.io https://conan.io [3]: https://github.com/cpp-pm/hunter https://github.com/cpp-pm/hunter