我正在使用自编译的boost库,必须添加库进行编译,但是我不能告诉我应该添加哪个boost库以便使用Boost :: Algorithm,没有明确的命名库文件喜欢' libboost_regex'为"正则表达式"和' libboost_thread' for" thread"。
答案 0 :(得分:1)
必须只为您的应用程序构建并链接少量的boost库。该列表位于Getting Started页面上。这是:
Boost.Chrono
Boost.Context
Boost.Filesystem
Boost.GraphParallel
Boost.IOStreams
Boost.Locale
Boost.MPI
Boost.ProgramOptions
Boost.Python (see the Boost.Python build documentation before building and installing it)
Boost.Regex
Boost.Serialization
Boost.Signals
Boost.System
Boost.Thread
Boost.Timer
Boost.Wave
如您所见,Boost.Algorithm
不在那里。要使用它,您只需要包含头文件。