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.
我正在尝试在 Linux 下构建一个 C++ 程序(它最初是在 Windows 下开发的),在此期间我被要求安装cmake和libboost.
cmake
libboost
我都安装了。但我仍然收到一条错误消息
/usr/bin/ld: cannot find -lboost_zlib
问题是我在哪里可以找到libboost_zlib。也许这个程序不应该在 Linux 下运行?
libboost_zlib
我已经安装了libboost-all-dev,我发现libboost_zlib图书馆里没有任何东西。谢谢你的时间!
libboost-all-dev
最后,我发现了问题所在。新发行版libboost_zlib中不再存在libboost(至少在版本 1.46 之后)。而是zlib集成在libboost_iostreams. 所以没有必要链接libboost_zlib,libboost_iostreams做所有的工作。
zlib
libboost_iostreams