Boost logo

Boost :

Subject: Re: [boost] bjam - help please
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-08-23 14:36:03


Edward Grace wrote:
> That works fine for the default darwin setup, however when I want to
> use g++-4 (which I would like to for testing purposes), the following
> doesn't work in the Jamfile
> using darwin : 4.4 : g++-4 ;
> bjam then returns with...
> darwin.compile.c++ bin/darwin-4.4/debug/example_basic.o
> g++-4: unrecognized option '-no-cpp-precomp'
> presumably I need to just tweak some sort of configuration file. Any
> idea where it lives?

All the toolsets are defined in tools/build/v2/tools/<toolset name>.jam
Since g++-4 is a standard gcc distribution, but uses Apple's linker try
  using gcc : 4.4 : g++-4 : <linker-type>darwin ;
The linker-type is deduced automatically for most cases.
I don't know why it isn't for darwin.

In Christ,
Steven Watanabe

Boost list run by bdawes at, gregod at, cpdaniel at, john at