Boost logo

Boost-Build :

Subject: Re: [Boost-build] bjam for Mac OS X -gcc4.x
From: er ([hidden])
Date: 2011-02-22 07:21:55

> Where this g++ 4.4.comes from? I've had more luck on OS X 10.5 with gcc 4.5 from

It comes from
I did:

  using darwin : 4.4 : /sw/lib/gcc4.4/bin/g++ :
<linkflags>\"-L/sw/lib/gcc4.4/bin\" ;


  sudo bjam toolset=darwin-4.4

and apparently it works! But unfortunately, not with

  sudo bjam toolset=darwin-4.4 cxxflags=-std=c++0x

which was the reason for porting from unix in the first place:

...found 1503 targets...
...updating 16 targets...
cc1plus: error: unrecognized command line option "-std=c++0x"

     "g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -dynamic
-no-cpp-precomp -gdwarf-2 -fPIC -std=c++0x -DBOOST_ALL_NO_LIB=1
-DBOOST_TEST_NO_AUTO_LINK=1 -I"../../../../.." -c -o

Replacing darwin by gcc in both user-config and bjam yields:

  sudo bjam toolset=gcc-4.4
...found 1503 targets...
...updating 12 targets...
ld: unknown option: --start-group
collect2: ld returned 1 exit status

     "/sw/lib/gcc4.4/bin/g++" -o
  -Wl,-Bstatic -Wl,-Bdynamic -Wl,--end-group -g "-L/sw/lib/gcc4.4/bin"


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