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
error: duplicate initialization of gcc with the following parameters:
error: version = 4.3.3
error: previous initialization at

This is the bjam I'm using

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

any suggestion?

best regards,


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
> Boost.Build:

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