Boost logo

Boost-Build :

Subject: Re: [Boost-build] Boost with Eclipse
From: Oliver Sampson (oliver.sampson_at_[hidden])
Date: 2011-03-22 11:01:54

Hi Jürgen,
Thanks for your help!
I'm using the boost 1.46.1 library.

I've set the Path to include the c:\program files\eclipse\mingw\bin
directory, and verify that gcc and g++ can be seen from the current
(boost_1_46_1) directory.

C:\Program Files\boost\boost_1_46_1>g++
g++: no input files

C:\Program Files\boost\boost_1_46_1>gcc
gcc: no input files

I did boostrap.bat with gcc as a parameter:
C:\Program Files\boost\boost_1_46_1>bootstrap.bat gcc
Building Boost.Jam build engine

Bootstrapping is done. To build, run:


To adjust configuration, edit 'project-config.jam'.
Further information:

     - Command line help:
     .\bjam --help

     - Getting started guide:

     - Boost.Build documentation:
then a bjam --build-type=complete toolset=gcc gives:
C:\Program Files\boost\boost_1_46_1>bjam --build-type=complete toolset=gcc
C:/Program Files/boost/boost_1_46_1/tools/build/v2/tools\gcc.jam:129: in
t from module gcc
error: toolset gcc initialization:
error: no command provided, default command 'g++' not found
error: initialized from
C:/Program Files/boost/boost_1_46_1/tools/build/v2/build\toolset.jam:38:
in tool
set.using from module toolset
C:/Program Files/boost/boost_1_46_1/tools/build/v2\build-system.jam:481:
in proc
ess-explicit-toolset-requests from module build-system
C:/Program Files/boost/boost_1_46_1/tools/build/v2\build-system.jam:561:
in load
  from module build-system
Files\boost\boost_1_46_1\tools\build\v2/kernel\modules.jam:283: in im
port from module modules
Files\boost\boost_1_46_1\tools\build\v2\kernel\bootstrap.jam:142: in
boost-build from module
C:\Program Files\boost\boost_1_46_1\boost-build.jam:17: in module scope
from mod

Any help would be appreciated. I don't think that changing the batch
files are really the right answer, which is why I've brought this to the
list, so that if there is indeed a problem, then it can be incorporated
into the next release.


On 21.03.2011 17:30, Jürgen Hunold wrote:
> Hi Oliver,
> On Monday, 21. March 2011 17:02:36 Oliver Sampson wrote:
> Now that the MinGW files can be downloaded from within Eclipse, the
>> default paths for finding MinGW don't apply to the scripts included with
>> the boost libraries.
> This ist Step 3.2: Add the MinGW bin folder to the PATH.
> Should be enough.
>> I'm not the first person to notice this. This fine fellow has written a
>> nice blog entry about how to modify the bootstrap and the build.bat
>> files to get the boost libraries to build for MinGW under windows from
>> the Eclipse install:
>> After following his tips (and finding the new locations for the
>> build.bat file), I'm now getting this error: "This program can’t start
>> because mspdb100.dll is missing from your computer. Try reinstalling the
>> program to fix this problem."
> this is a msvc-10 dll. Seems you build bjam with msvc.
>> Any tips on getting the boost libraries to build to use the MinGW that
>> is downloaded via Eclipse?
> Patching build.bat is unnessary. You should be able to just invoke ".
> \build.bat gcc" and even "bootstrap.bat gcc" from the main directory.
> And another bug is "bjam --toolset=gcc" in 3.5, this should simply be "bjam
> gcc" (or "bjam toolset=gcc").
> For further diagnostic please state the exact boost version and provide more
> compiler output next time.
> Yours,
> Jürgen

Oliver Sampson

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at