Is it possible to convince waf to use g++ for linking certain modules?

Richard Sharpe realrichardsharpe at
Mon Mar 23 15:33:19 MDT 2015

On Mon, Mar 23, 2015 at 2:18 PM, Jelmer Vernooij <jelmer at> wrote:
> On 23/03/15 20:47, Richard Sharpe wrote:
>> Hi folks,
>> I need to like some C++ generated code to a Samba module (protobufs
>> stuff) and I am having problems with undefined references to stuff
>> that looks like it is in std::basic_ios<blah blah>
>> I have managed to convince waf to pass -lstdc++ but that has not
>> helped and some people are claiming that I should link with g++ for
>> that module.
>> Does anyone have any ideas on how to convince waf to use g++ for that link?
> For waf itself, see its documentation:
> However, you'll need some modifications to wafsamba/ to have it invoke
> the underlying waf functions in the right way.

OK, thanks to both Thomas and Jelmer.

Richard Sharpe

More information about the samba-technical mailing list