List Info

Thread: confusion...




<cflags> <cxxflags> confusion...
user name
2006-03-31 19:19:19
I apologize, this was due to an earlier problem with
"<warnings>all" 
appearing on the command line after <cxxflags>. It's
fixed in the most 
current boost-build.

Thanks,
Emil

----- Original Message ----- 
From: "Vladimir Prus" <ghostcs.msu.su>
To: "Boost.Build developer's and user's list"
<boost-buildlists.boost.org>
Sent: Friday, March 31, 2006 5:40 AM
Subject: Re: [Boost-build] <cflags> <cxxflags>
confusion...


> On Tuesday 28 March 2006 11:39, Emil Dotchevski wrote:
>> With -wall, GCC warns about classes with virtual
functions but with no
>> virtual destructor, even if the destructor is
protected and is never 
>> called
>> virtually. So I use
"<toolset>gcc:<cflags>-Wno-non-virtual-dto
r" in my
>> jamroot to disable this warning globally, and it
works, but then I get 
>> this
>> on C files:
>>
>> cc1: warning: command line option
"-Wno-non-virtual-dtor" is valid for
>> C++/ObjC++ but not for C
>>
>> I tried to use <cxxflags> instead of
<cflags>, but then boost-build 
>> doesn't
>> pass "-Wno-non-virtual-dtor" when
compiling CPP files.
>>
>> What am I doing wrong? This warning just sucks, how
do I disable it for
>> good?
>
> I'm afraid I can't reproduce this. I have a project
with Jamroot 
> containing
> just:
>
>  exe a : a.cpp :
<toolset>gcc:<cxxflags>-Wno-non-virtual-dtor ;
>
> and empty a.cpp and running "bjam -n" shows
the -Wno-non-virtual-dtor 
> option.
> Do you get the problem on such reduced testcase?
>
> If yes, your Boost.Build is probably out of date. If
no, there's something
> more complex going on, and you'd need to provide a
minimal testcase
> reproducing the problem.
>
> - Volodya
>
> -- 
> Vladimir Prus
> http://vladimir_pru
s.blogspot.com
> Boost.Build V2: http://boost.org/boost-
build2
> _______________________________________________
> Unsubscribe & other changes: 
> http://lists.boost.org/mailman/listinfo.cgi/boost-build
> 
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )