Undefined reference error at linktime with unittests

z z at z.com
Thu Dec 10 19:21:41 UTC 2020


On Thursday, 10 December 2020 at 14:51:51 UTC, ag0aep6g wrote:
>...

Thank you for the explanation on mangles.

The problem was caused by an «unittest{ void main() }» 
declaration in an import's source file, and for some reason it 
had both passed compilation and not resulted in the usual 
"undefined symbol : mainCRTStartup" error when these problems 
occur. Hence the confusion.


More information about the Digitalmars-d-learn mailing list