|
Boost-Build : |
Subject: Re: [Boost-build] bjam for Mac OS X -gcc4.x
From: Gevorg Voskanyan (v_gevorg_at_[hidden])
Date: 2011-02-22 07:42:11
er wrote:
> > 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 http://pdb.finkproject.org/pdb/package.php/gcc44
> I did:
>
> using darwin : 4.4 : /sw/lib/gcc4.4/bin/g++ :
><linkflags>\"-L/sw/lib/gcc4.4/bin\" ;
>
> and
>
> 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:
>
> ...patience...
> ...patience...
> ...found 1503 targets...
> ...updating 16 targets...
> darwin.compile.c++
>../../../../../bin.v2/libs/assign/v2/test/unit_testing/utility.test/darwin-4.4/debug/utility.o
>
> 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
>"../../../../../bin.v2/libs/assign/v2/test/unit_testing/utility.test/darwin-4.4/debug/utility.o"
> "utility.cpp"
Here, the compiler invoked is "g++" but should have been
"/sw/lib/gcc4.4/bin/g++" if everything were configured correctly. Please check
that the configuration is in ~/user-config.jam (and only), is typed correctly,
and the paths are correct.
> PS: It works from IDE CodeBlocks with the following settings:
> search path = /sw/bin, C compiler = gcc-4, C++ compiler = g++-4, Linker
> for dyn libs = g++-4. These are in fact shortcuts to gcc and g++ in
> /sw/lib/gcc4.4/bin
What happens when you try:
using darwin : 4.4 : /sw/bin/g++-4 ;
?
Gevorg
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk