Boost logo

Boost :

Subject: Re: [boost] [unit_test_framework] plans?
From: Dmitry Goncharov (dgoncharov_at_[hidden])
Date: 2009-08-08 11:35:31


Gennadiy Rozental wrote:
>
> The problem is that main function can't reside inside the shared library (at
> least not if portability is a concern), but it can inside the static one.
> Later was a default which we wanted to continue to employ. To properly support
> shared library usage variant I had to go with a bit different support scheme,
> with main function outside. Thus we came to the current state of affairs.
>
>
It is possible to have function main() in a dedicated library, not in
libboost_unit_test_framework.
In this case users who don't want to implement main() can link against
that dedicated library.
This lets static and dynamic libboost_unit_test_framework libraries be
interchangeable.

BR, Dmitry


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk