Boost logo

Boost-Build :

Subject: Re: [Boost-build] how to link with gcc instead of g++
From: Jorge Suit Perez Ronda (josp.jorge_at_[hidden])
Date: 2011-10-24 05:01:24


Hi Vladimir, I try what you suggest, including

using gcc : : gcc ;

as the first line in my Jamroot but I got this error:

error: at
/usr/local/src/BOOST-BUILD/boost-build2/boost-build/build/project.jam:828
error: duplicate initialization of gcc with the following parameters:
error: version = 4.3.3
error: previous initialization at
/usr/local/src/BOOST-BUILD/boost-build2/boost-build/build/project.jam:828

This is the bjam I'm using

bjam --version
Boost.Build V2 (Milestone 12)
Boost.Jam 03.1.16

any suggestion?

best regards,

Jorge

2011/10/20 Vladimir Prus <ghost_at_[hidden]>

> On Wednesday, October 19, 2011 11:10:28 Jorge Pérez wrote:
> > When I compile a program which is only C (not C++) the result is an
> > executable depending on libstdc++ this is because the linker is invoked
> as
> > g++. Is it possible to invoke gcc as the linker? or there is a way to
> > avoid this dependency on libstdc++ for program written only in C?
>
> Hi Jorge,
>
> you can try to configure compiler like:
>
> using gcc : : gcc ;
>
> to specifically use gcc all the time. This will affect all compilations. It
> is
> certainly possible to adjust the code to implement better solution, but it
> is not the case now.
>
> HTH,
>
>
> --
> Vladimir Prus
> http://vladimir_prus.blogspot.com
> Boost.Build: http://boost.org/boost-build2
>



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