简体   繁体   English

我应该使用哪个库才能使用Boost算法进行编译

[英]which library should i use in order to compile with boost algorithm

我正在使用自编译的boost库,必须添加要编译的库,但是我无法确定要使用Boost :: Algorithm应该添加哪个boost库,没有像'libboost_regex这样的明确命名的库文件。 '代表“ regex”,'libboost_thread'代表“ thread”。

Only a small number of boost libraries must be built and linked against your application. 只需构建少量的Boost库并将其与您的应用程序链接。 The list is on their Getting Started page. 该列表位于其“ 入门”页面上。 Here it is: 这里是:

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

As you can see, Boost.Algorithm is not on there. 如您所见, Boost.Algorithm不在此处。 In order to use it, you need only include the header file(s). 为了使用它,您只需要包括头文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM