Boost logo

Boost :

From: Beman Dawes (bdawes_at_[hidden])
Date: 2002-08-12 15:56:22


At 02:04 PM 8/12/2002, Gennadiy Rozental wrote:

>> One oddity that has affected several libraries, but not threads, is
that
>> Intel and VC++ 7.0 get link failures if test_main is defined like this:
>>
>> int test_main(int,char**)
>>
>> I've just been changing those to
>>
>> int test_main(int,char*[])
>> which works fine.
>
>Yeh. I should have mention that in note. I also remarked this behaviour
on
>some compilers. I did not find other fix, but just follow in test modules

>test_main specification that is in the library. Do you have other
>propositions? I could change it in library to first form, but that I
afraid
>will cause second to fail. Though I will try.

I personally don't have any problem requiring people use the

    int test_main(int,char*[])

As Bill Kempf already suggested, it might be nice to find out what the
standard says, but the work around is so simple I don't think we should
worry a great deal about it now. Let's clear the other issues first.

But maybe you should note the issue in the docs if you haven't done so
already.

Thanks,

--Beman


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