C++ – Build boost library with MinGW

1. build bjam with boostrap.bat
Example)
bootstrap gcc

2. run the following command
b2 toolset=gcc –build-type=complete architecture=x86 address-model=32 –prefix=h:\develop_lib\BOOST –libdir=h:\develop_lib\BOOST\lib\1_59\x86-mingw install

3. for 64 bits, you should install MinGW 64bits then change address-model from 32 to 64.
Example)
b2 toolset=gcc –build-type=complete architecture=x86 address-model=64 –prefix=h:\develop_lib\BOOST –libdir=h:\develope_lib\BOOST\lib\1_59\x64-mingw install

Advertisements
This entry was posted in C++, Programming. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s