On Monday, 20 August 2018 at 13:49:19 UTC, rikki cattermole wrote: > That is for Optlink not for MSVC link which ldc uses. Exactly. For LDC, just rename your main() to WinMain().