# Boost-Build :

Subject: Re: [Boost-build] What needs fixing for MinGW
From: Paul (paulsteyn1_at_[hidden])
Date: 2012-05-02 15:55:22

On Wed, 2 May 2012 14:04:09 +0200
Lars Viklund <zao_at_[hidden]> wrote:

> On Wed, May 02, 2012 at 07:44:20AM -0400, François Jacques wrote:
> > Hello Paul,
> >
> > Building with Microsoft compilers works well, but you need to know
> > the magic invocation. It's either msvc (but that's for the OLD
> > release, 6 or 7 - don't remember) or vc8, vc9, vc10 and vc11.
>
> I believe he meant that it defaults to assuming MSVC on Windows, and
> if it fails to find one (which happens if you don't have one at all),
> it assumes it's in PATH and happily goes on to fail.
>
Yes, that's what I meant, sorry if it wasn't clear. I don't have the
MSVC compiler installed, but I do have MinGW installed in "C:\MinGW",
but building bjam didn't find that, so it defaulted to the MSVC
compiler, and then complained about "cl" (I think it was) being an
unknown application. I don't know why it didn't find MinGW, as the
"build.bat" file under "tools\build\v2\engine" appears to look for
"C:\MinGW\bin\gcc.exe", which is there.

From there I specified "toolset=gcc" to b2 when installing, and then
building Boost, just in case. I'm not sure if either of those steps
would have failed without it, but I didn't take the chance.

Paul