cant run unittests
dom via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Jul 14 03:13:38 PDT 2016
On Thursday, 14 July 2016 at 00:33:50 UTC, ethgeh wrote:
> On Wednesday, 13 July 2016 at 19:41:53 UTC, dom wrote:
>> how can i run my unittests for a dynamic library? some weird
>> conflict is reported between main functions, my project doesnt
>> contain any main function.
>>
>> [...]
>
> try to put this before the main of your application:
>
> "version(unittest){} else"
>
> it looks like the default unittest config implies the switch
> "-main".
as i said my project doesnt contain a main() function
More information about the Digitalmars-d-learn
mailing list