C ++ BOOST Library: 0. The first step is downloaded, compiled and established

tags: C++  

1. Brief

The Boost library combines a large number of plastic algorithms and functional implementation functions, and it includes a large number of functional components with high efficiency and simplicity characteristics that have been actively produced, which is widely across the field. For details, please refer to the official website:Boost C++ Libraries

2. Use

2.1.

  1. Most components of the Boost Library do not need to compile links, which can include header files, but you need to indicate the boost directory.

  2. After decompression, you can find a bootstrap.bat file in the root directory, and double -click to generate B2.EXE. Use the Release and DEBUG version of the X64, X86 platform.
  3. The compilation of the dynamic library needs to be completed through the CMD command line. For specific reference. \ B2 -Help to index.

2.2 Project preparation

  1. You need to add boost tool package directory in the project containing directory attributes
  2. You need to contain the lib path in the Stage directory in the library directory attribute of the project
#include <iostream>
#include "boost/version.hpp"

int main()
{
    std::cout << "Hello World!\n";
    std::cout << BOOST_LIB_VERSION;
}

Intelligent Recommendation

Compiled and used under mingw environment boost library

    First of all to boost the BOOST download the latest source code and compiled JAM, address:http://www.boost.org/users/download/ . Downloaded here is boost-jam-3.1.17-1-ntx86.zip and ...

Boost library manually compiled could not find pyconfig.h

Online Python.jam plus M, export cplus_include_path, is not good to install python3-dev Add with-python after run bootstrap.sh, for example Then Sudo ./b2 You can find the system's pyconfig.h....

C ++ Boost Library: Windows Compile Boost Library

Article catalog 1. Boost library that needs to be compiled 2. Compilation steps 3. Library naming rules 4. VS configuration library directory C ++ Boost Library: Introduction and First Sample Program ...

Install C++ boost library

1. First go to the Boost official website to download the latest Boost version, I downloaded the boost_1_6_0 version, and unzip it. 2. Enter the decompressed directory: cd boost_1_6_0, execute the fol...

c++ configure boost library

Boost download address: Official website http://www.boost.org/ download link https://sourceforge.net/projects/boost/files/boost/1.63.0/ Configuration: Download the file and unzip it (I saved it on the...

More Recommendation

C ++ link Boost library

Print information – Boost version: 1.58.0 – Found the following Boost libraries: – filesystem – program_options – regex – system – Boost version found –...

C ++ | Boost Library Tools

1. Noncopyable When a class is defined in C ++, if the copy constructor and copy assignment are not clearly defined, the compiler will automatically generate these two functions for us. When we define...

C ++ Boost Library

1. Introduction: Boost is the general name of some C ++ program libraries that provides the expansion of the C ++ language standard library. The Boost library is a C ++ library with transplantable and...

【C ++】 BOOST Library Introduction

Reference: https://blog.csdn.net/f110300641/article/details/81865545 https://www.boost.org/doc/libs/1_80_0/more/getting_started/windows.html Articles directory 1. Introduction 2. Download method 3. Bo...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top