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@tt_detail@test_tools@boost@@YAXABVpredicate_result@23@AAV?$basic_wrap_stringstream@D@3@V?$basic_cstring@$$CBD@unit_test@3@IW4tool_level@123@W4check_type@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@test_suite@unit_test@boost@@QAEXPAVtest_unit@23@KI@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@framework@unit_test@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@unit_test@boost@@QAEAAV012@ABUcheckpoint@log@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@test_results@unit_test@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@runtime_config@unit_test@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@unit_test_monitor_t@unit_test@boost@@QAE?AW4error_level@123@ABVtest_case@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@boost@@YAXJ@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"
"John McMahon"
wrote in message news:f15bem$ehn$1@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?)