Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
356 views
in Technique[技术] by (71.8m points)

Building Boost 1.52 with MinGW

I am trying to find an authorative answer on how to build Boost 1.52 with MinGW. I found some pointers in the Internet that boil down to build it like so:

cd toolsuildv2engine
build.bat mingw

copy bin.ntx86jam.exe ........
cd ........
bjam --toolset=gcc

Since those instructions date back as far as for Boost 1.45 and since I couldn't verify this with Boost's own instructions I'd like to verify if the steps above are the correct ones to build Boost with MinGW.

I tried these steps myself and it seemed to build Boost, however I have not yet done extensive testing (nor would I have a concept to do this).

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Yes, that is correct. However there would have been a simpler, yet identical way; your steps until the bjam call are automatically done by bootstrap.bat:

C:oost_1_52_0> bootstrap.bat mingw
Building Boost.Build engine
...
C:oost_1_52_0> b2 toolset=gcc

If not explicitly specified, the libraries will be placed into the stagelib directory, include path is the installation root. To test the installation, you can use the example from Link Your Program to a Boost Library.

References: Installation, Prepare to Use a Boost Library Binary


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

57.0k users

...