Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在编写一个 c++ 应用程序,我在其中使用了很多库,如 boost curl、pthread 等。我不确定如何将应用程序与所有依赖项打包以供生产使用。分发具有依赖关系的应用程序的最佳方法是什么?
这取决于您计划使用的平台。如果您使用 pthread,您可能针对的是 POSIX 系统。如果您打算使用 Debian,您可以将所有内容打包在一个 Deb 包中并配置该包以处理依赖关系。redhat 系统的 RPM 也是如此。我对解决 OSX 系统的最佳方法没有经验