
I'm getting an absolute ton of warnings - of the kind that are normally errors - from Boost.Test while working on Boost.Integer: compile-c-c++ ..\..\..\bin.v2\libs\integer\test\integer_test.test\msvc-9.0\debug \threading-multi\integer_test.obj integer_test.cpp d:\data\boost\trunk\boost/test/impl/execution_monitor.ipp(941) : warning C4535: calling _set_se_translator() requires /EHa d:\data\boost\trunk\boost/test/impl/execution_monitor.ipp(1128) : warning C4273: 'boost::execution_monitor::catch_signals' : inconsistent dll linkage d:\data\boost\trunk\boost/test/execution_monitor.hpp(190) : see previous definition of 'catch_signals' d:\data\boost\trunk\boost/test/impl/execution_monitor.ipp(1199) : warning C4273: 'boost::execution_monitor::execute' : inconsistent dll linkage d:\data\boost\trunk\boost/test/execution_monitor.hpp(173) : see previous definition of 'execute' d:\data\boost\trunk\boost/test/impl/execution_monitor.ipp(1340) : warning C4273: 'boost::execution_exception::execution_exception' : inconsistent dll linkage d:\data\boost\trunk\boost/test/execution_monitor.hpp(125) : see previous definition of '{ctor}' d:\data\boost\trunk\boost/test/impl/execution_monitor.ipp(1348) : warning C4273: 'boost::execution_exception::location::location' : inconsistent dll linkage d:\data\boost\trunk\boost/test/execution_monitor.hpp(117) : see previous definition of '{ctor}' d:\data\boost\trunk\boost/test/impl/debug.ipp(637) : warning C4273: 'boost::debu g::under_debugger' : inconsistent dll linkage and so on. Normally, I would put this down to a problem with Boost.Integer's Jamfile, but in this I see nothing wrong. Any ideas anyone? Thanks, John.

AMDG John Maddock wrote:
I'm getting an absolute ton of warnings - of the kind that are normally errors - from Boost.Test while working on Boost.Integer:
compile-c-c++ ..\..\..\bin.v2\libs\integer\test\integer_test.test\msvc-9.0\debug \threading-multi\integer_test.obj integer_test.cpp d:\data\boost\trunk\boost/test/impl/execution_monitor.ipp(941) : warning C4535: calling _set_se_translator() requires /EHa
This is a problem in the Jamfile. It needs <toolset>msvc:<asynch-exceptions>on
<snip other warnings that I don't know about>
and so on.
Normally, I would put this down to a problem with Boost.Integer's Jamfile, but in this I see nothing wrong.
In Christ, Steven Watanabe

Steven Watanabe <watanabesj <at> gmail.com> writes:
warning C4535: calling _set_se_translator() requires /EHa
This is a problem in the Jamfile. It needs <toolset>msvc:<asynch-exceptions>on
I believe you add dependency on boost/test/included in Jamfile and this should do the trick. Gennadiy

AMDG Gennadiy Rozental wrote:
Steven Watanabe <watanabesj <at> gmail.com> writes:
warning C4535: calling _set_se_translator() requires /EHa
This is a problem in the Jamfile. It needs <toolset>msvc:<asynch-exceptions>on
I believe you add dependency on boost/test/included in Jamfile and this should do the trick.
Unfortunately not. usage-requirements only work for free features. In Christ, Steven Watanabe

warning C4535: calling _set_se_translator() requires /EHa
This is a problem in the Jamfile. It needs <toolset>msvc:<asynch-exceptions>on
I believe you add dependency on boost/test/included in Jamfile and this should do the trick.
Actually that wasn't the warning I was asking about ;-) But as it happens, it turns out the Jamfile was completely out-of-synch with what the source files are doing, fixing that, fixed most of the warnings... but now if I have: [ run integer_test.cpp /boost/test//minimal ] I see: warning D4025 : overriding '/EHsc' with '/EHa' So it does the right thing, but shouts about it :-( Is this something that can be fixed in Boost.Build? John.

-----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of John Maddock Sent: Monday, November 23, 2009 4:39 PM To: boost@lists.boost.org Subject: Re: [boost] [Boost.Build] Lots of issues with Boost.Test in Trunk?
warning C4535: calling _set_se_translator() requires /EHa
This is a problem in the Jamfile. It needs <toolset>msvc:<asynch-exceptions>on
I believe you add dependency on boost/test/included in Jamfile and this should do the trick.
Actually that wasn't the warning I was asking about ;-)
But as it happens, it turns out the Jamfile was completely out-of-synch with what the source files are doing, fixing that, fixed most of the warnings... but now if I have:
[ run integer_test.cpp /boost/test//minimal ]
I see:
warning D4025 : overriding '/EHsc' with '/EHa'
So it does the right thing, but shouts about it :-(
would -<toolset>msvc:<cxxflags>/EHsc # Remove /EHsc from command line <toolset>msvc:<cxxflags>/EHa # add to command line do the trick? As for example: -<toolset>msvc:<cxxflags>/Za # (Re-)Enable MS extensions if these are definitely required for specific module. as suggested, worked for me. Paul --- Paul A. Bristow Prizet Farmhouse Kendal, UK LA8 8AB +44 1539 561830, mobile +44 7714330204 pbristow@hetp.u-net.com

-<toolset>msvc:<cxxflags>/Za # (Re-)Enable MS extensions if these are definitely required for specific module.
as suggested, worked for me.
Sure, explicitly setting that option works, but really the existing code *should* work - we want requirements on dependencies to be correctly propagated upwards. Cheers, John.
participants (4)
-
Gennadiy Rozental
-
John Maddock
-
Paul A. Bristow
-
Steven Watanabe