
8 Aug
2009
8 Aug
'09
3:35 p.m.
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