Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
352 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 Answer

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...