
10 Nov
2006
10 Nov
'06
7:30 a.m.
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