Mingw compilation boost

Source: Internet
Author: User
Mingw compilation boost

(Jinqing's column)

An error occurred while running Bootstrap. Sh in mingw shell.

Jinq @ jinqing-PC/D/src/boost_000052_0
$ Bootstrap. Sh toolset = gcc
Building boost. Build engine with toolset GCC...
Failed to build boost. Build build Engine
Consult 'bootstrap. log' For more details

Bootstrap. log is shown as follows:

###
### Using 'gcc 'toolset.
###
Rm-RF Bootstrap
Mkdir Bootstrap
Gcc-O Bootstrap/jam0 command. c compile. c constants. c debug. c function. c glob. c hash. c hdrmacro. c headers. c jam. c jambase. c jamgram. C lists. c make. c make1.c object. C option. c output. c parse. c pathunix. c Regexp. c rules. C scan. c search. c SUBST. c timestamp. c variable. c modules. c strings. c filesys. c builtins. c PWD. C Class. c native. c md5.c w32_getreg.c modules/set. c modules/path. c modules/RegEx. c modules/property-set.c modules/sequence. c modules/order. c execunix. c fileunix. c
Builtins. C: 33: 23: Fatal error: SYS/Wait. H: no such file or directory
Compilation interrupted.
Execunix. C: 17: 26: Fatal error: SYS/resource. h: no such file or directory
Compilation interrupted.
Fileunix. C: 98: 17: Fatal error: Ar. h: no such file or directory
Compilation interrupted.

Follow the http://lists.boost.org/boost-users/2011/06/69016.php
The solution is as follows:
Jinq @ jinqing-PC/D/src/boost_1_52_0/tools/build/v2/Engine
$./Build. Sh mingw
Jinq @ jinqing-PC/D/src/boost_1_52_0/tools/build/v2/engine/bin. ntx86
$ CP b2.exe/D/src/boost_000052_0
Jinq @ jinqing-PC/D/src/boost_000052_0
$ B2 toolset = GCC stage

Follow the https://svn.boost.org/trac/boost/ticket/4884#comment:10
You can run bootstrap.batin the .exe window to generate b2.exe.
However, you need to set the GCC path.
Bootstrap. Sh does not support running in the mingw shell.

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.