Boost logo

Boost Users :

Subject: Re: [Boost-users] boost with mingw
From: Paul A. Bristow (pbristow_at_[hidden])
Date: 2012-11-02 14:11:53


> -----Original Message-----
> From: boost-users-bounces_at_[hidden] [mailto:boost-users-bounces_at_[hidden]] On Behalf
Of
> Kraus Philipp
> Sent: Friday, November 02, 2012 1:54 PM
> To: boost-users_at_[hidden]
> Subject: [Boost-users] boost with mingw
>
> Hello,
>
> I try to build Boost with MinGW / MSYS. I have found in the dokumentation
> http://www.boost.org/doc/libs/1_51_0/more/getting_started/windows.html
> that MinGW shell is not supported, but I can build bJam with booststrap.sh --toolset=mingw under
the
> shell, but I get the error: mingw.jam: No such file or directory
>
> Can I build boost under MinGW shell or another shell with the MinGW gcc?

FWIW I built my mingw Boost library collection using a windows .bat containing

b2 -a --build-dir=i:/boost-trunk toolset=gcc-4.7.2 --build-type=complete --without-python
--without-mpi --without-locale stage threading=multi > build_gcc_dll_libs_trunk_all_%date%_%tim%.log
2>&1

getting the expected lots of files like libboost_unit_test_framework-mgw47-mt-d-1_52.dll.a in my
boost-trunk/stage/lib folder

and I can link to Boost.Test library from mingw32 using Ruben's binaries

http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32\Personal%20Builds/ru
benvb/
\i686-w64-mingw32-gcc-4.7.2-release-win32_rubenvb.7z

there are also others like 4.6 and clang - see

https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/r
ubenvb/

I added this tool chain on NetBeans.

My user_config.jam contains

# GCC configuration using the mingw32 version.
using gcc
  : 4.7.2
  : "c:/mingw32/bin/g++.exe"
  ;

HTH

Paul

---
Paul A. Bristow,
Prizet Farmhouse, Kendal LA8 8AB  UK
+44 1539 561830  07714330204
pbristow_at_[hidden]

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net