Boost logo

Boost :

From: Johan Nilsson (r.johan.nilsson_at_[hidden])
Date: 2006-11-10 02:30:03


Vladimir Prus wrote:

[snip]

>
> It think the question is still reasonable. Can you have *static*
> library called unit_test_framework_main that would contain the stock
> definition of the 'main' function?

You mean a special library just containing the main definition for the unit
test framework, right?

I'm not so sure every platform supports that. IIRC some year ago I got
crashes at runtime when building a C++ app when main was linked in through a
static library. I was using (the company formerly known as DEC) C++
6.<something> on OpenVMS Alpha 7.3-1.

As for what the standard says (if it says anything in this matter), I
wouldn't know - sorry.

// Johan


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