Boost logo

Boost-Build :

Subject: Re: [Boost-build] how to link with gcc instead of g++
From: Vladimir Prus (ghost_at_[hidden])
Date: 2011-10-20 05:32:38

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.


Vladimir Prus

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