cant run unittests

Seb via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Jul 16 13:22:15 PDT 2016


On Thursday, 14 July 2016 at 10:13:38 UTC, dom wrote:
> 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

Are you sure? The error message states exactly this. Could you 
reduce the project to a single file and upload it somewhere (e. 
g. github).


More information about the Digitalmars-d-learn mailing list