Boost logo

Boost Users :

From: John McMahon (john_gg_mcmahon_at_[hidden])
Date: 2007-04-30 16:18:16


Would it be this?:
"Use /EHa to specify the asynchronous exception handling model (C++
exception handling with structured exception handling exceptions). /EHa may
result in a less performant image because the compiler will not optimize a
catch block as aggressively, even if the compiler does not see a throw.
/GX is deprecated in Visual C++ 2005; use /EH (Exception Handling Model)
instead. For more information, see Deprecated Compiler Options."

Also, I'm guessing, but it looks like I should set the compiler flag in
boost\boost_1_33_1\tools\build\v1\vc-8_0-tools.jam

I edited it to contain
flags vc-8_0 C++FLAGS : /EHa ; # no idea if the syntax is right; also is
this the right compiler option? or /EHsh. Tried both. to no avail.

and ran

bjam --v2 --with-test "-sTOOLS=vc-8_0" "-sVS80_ROOT=C:\Program
Files\Microsoft Visual Studio 8\VC"

(I see no corresponding v2 vc-8_0-tools.jam.)

This built
..\boost\boost_1_33_1\bin.v2\libs\test\build\msvc\debug\asynch-exceptions-on\link-static\boost_unit_test_framework-vc-d-1_33.lib

(notice no lib- prepended).

When I point my lib path to this library, I get the same exception - only
this time on the console outut rather than in a popup.

John

----
Log out out from vc80 link step.
1>Searching libraries
1> Searching 
D:\john\SyncFolder\projects\programming\c++\boost\boost_1_33_1\bin.v2\libs\test\build\msvc\debug\asynch-exceptions-on\link-static\boost_unit_test_framework-vc-d-1_33.lib:
1> Found "void __cdecl boost::test_tools::tt_detail::check_impl(class 
boost::test_tools::predicate_result const &,class 
boost::basic_wrap_stringstream<char> &,class 
boost::unit_test::basic_cstring<char const >,unsigned int,enum 
boost::test_tools::tt_detail::tool_level,enum 
boost::test_tools::tt_detail::check_type,unsigned int,...)" 
(?check_impl_at_tt_detail_at_test_tools_at_boost@@YAXABVpredicate_result_at_23@AAV?$basic_wrap_stringstream_at_D@3_at_V?$basic_cstring@$$CBD_at_unit_test_at_3@IW4tool_level_at_123@W4check_type_at_123@IZZ)
1> Referenced in BoostTest1.obj
1> Loaded boost_unit_test_framework-vc-d-1_33.lib(test_tools.obj)
1> Found "public: void __thiscall boost::unit_test::test_suite::add(class 
boost::unit_test::test_unit *,unsigned long,unsigned int)" 
(?add_at_test_suite_at_unit_test_at_boost@@QAEXPAVtest_unit_at_23@KI_at_Z)
1> Referenced in BoostTest1.obj
1> Loaded boost_unit_test_framework-vc-d-1_33.lib(unit_test_suite.obj)
1> Found "void __cdecl boost::unit_test::framework::test_unit_aborted(void)" 
(?test_unit_aborted_at_framework@unit_test_at_boost@@YAXXZ)
1> Referenced in boost_unit_test_framework-vc-d-1_33.lib(test_tools.obj)
1> Loaded boost_unit_test_framework-vc-d-1_33.lib(framework.obj)
1> Found "public: class boost::unit_test::unit_test_log_t & __thiscall 
boost::unit_test::unit_test_log_t::operator<<(struct 
boost::unit_test::log::checkpoint const &)" 
(??6unit_test_log_t_at_unit_test_at_boost@@QAEAAV012_at_ABUcheckpoint@log_at_12@@Z)
1> Referenced in boost_unit_test_framework-vc-d-1_33.lib(test_tools.obj)
1> Loaded boost_unit_test_framework-vc-d-1_33.lib(unit_test_log.obj)
1> Found "public: bool __thiscall 
boost::unit_test::test_results::passed(void)const " 
(?passed_at_test_results_at_unit_test_at_boost@@QBE_NXZ)
1> Referenced in 
boost_unit_test_framework-vc-d-1_33.lib(unit_test_suite.obj)
1> Loaded boost_unit_test_framework-vc-d-1_33.lib(results_collector.obj)
1> Found "int __cdecl boost::unit_test::runtime_config::random_seed(void)" 
(?random_seed_at_runtime_config_at_unit_test_at_boost@@YAHXZ)
1> Referenced in 
boost_unit_test_framework-vc-d-1_33.lib(unit_test_suite.obj)
1> Referenced in boost_unit_test_framework-vc-d-1_33.lib(framework.obj)
1> Loaded boost_unit_test_framework-vc-d-1_33.lib(unit_test_parameters.obj)
1> Found "public: enum boost::unit_test::unit_test_monitor_t::error_level 
__thiscall 
boost::unit_test::unit_test_monitor_t::execute_and_translate(class 
boost::unit_test::test_case const &)" 
(?execute_and_translate_at_unit_test_monitor_t_at_unit_test_at_boost@@QAE?AW4error_level_at_123@ABVtest_case_at_23@@Z)
1> Referenced in boost_unit_test_framework-vc-d-1_33.lib(framework.obj)
1> Loaded boost_unit_test_framework-vc-d-1_33.lib(unit_test_monitor.obj)
1> Found "void __cdecl boost::detect_memory_leak(long)" 
(?detect_memory_leak_at_boost@@YAXJ_at_Z)
1> Referenced in boost_unit_test_framework-vc-d-1_33.lib(framework.obj)
1> Loaded boost_unit_test_framework-vc-d-1_33.lib(execution_monitor.obj)
"Gennadiy Rozental" <gennadiy.rozental_at_[hidden]> wrote in message 
news:f15bka$f5b$1_at_sea.gmane.org...
>
> "John McMahon" <john_gg_mcmahon_at_[hidden]> wrote in message 
> news:f15bem$ehn$1_at_sea.gmane.org...
>>
>> built a new libboost_unit_test_framework-vc80-mt-gd-1_33_1.lib and just 
>> now prepended my vc80 lib search path to point to the folder I did the 
>> 1.33.1 libirary build.
>
> The error was in tools if I am not mistaken. You need to make sure 
> manually that async exceptions flag is turned on (/Ga?) 

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net