Boost compilation, Windows platform

Source: Internet
Author: User

  1. Download boost and generate Bjam.exe file

    To Google site search download boost_1.52 version of the library, after the download is complete, extract to the x: Under, this address itself casually defined. In the extracted files to search for the BUILD.bat file, write it down in the directory, into the DOS environment using the CD command into the BUILD.bat file directory, enter the command: "Build MinGW", will be generated in this directory bin.ntx86\ Jam.exe and B2.exe files, as long as the Bjam.exe is copied to the root of the source file (as shown).

  2. 2

    Compiling and installing the Boost library

    Enter the DOS environment, use the CD command to enter the root of the extracted boost file, enter the Bjam--toolset=gcc--prefix=c:\boost install to compile, this command will install the compiled boost file to the C:\boost

    Note: There are no spaces in the command line, the folder name can be taken arbitrarily, but a folder name can only be a word, not two or more than two words separated by a space, otherwise the compilation fails.

  3. 3

    Codeblocks Configuring the Boost library

    Settings->compiler and Debugger settings->linkersettings-><%boost installation directory%>/lib/*.lib

    Settings->compiler and Debugger settings->searchdirectories-Compiler-><%boost installation directory%>/include/ boost-1_39

    Settings->compiler and Debugger settings->searchdirectories-Linker-><%boost installation directory%>/lib

Boost compilation, Windows platform

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.