Boost logo

Boost Users :

Subject: Re: [Boost-users] [boost.test] How to register custom exception for auto test?
From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2014-01-12 21:55:45


Jörg Becker <news <at> familiebecker.com> writes:

> Hello again!
>
> I just gave boost 1.55.0 with gcc 4.7.2 a try. But the old test in
> my initial mail still results in unknown location(0): fatal error
> in "exception1_test": unknown type.
>
> Since I was sure I saw the custom exception handling working one day,
> I tried the header only version by including
> #include <boost/test/included/unit_test.hpp>.
> And this time I saw the expected result: Caught my_exception1!!!
>
> Unfortunately I have to use the dynamic library test variant.
> So can anybody tell me how to enable the custom exception
> handling for the dynamic test
> library? What is the difference to the header-only variant
> (concerning the exception handling).

Hi Jörg,

I think the only significant difference is that library is build using
different build command. Maybe somehow it disables exceptions or something.
Otherwise I do not see a reason for this to happend. Let me know if you ever
figured out what was the root cause.

Regards,
Gennadiy


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