Comment #0 by dlang-bugzilla — 2014-09-06T10:50:04Z
I don't know if the COFF object file format supports indicating the entry point, but if it does, then DMD does not emit this information when pragma(startaddress) is used.
Example program:
////////// test.d //////////
import win32.winbase;
void start()
{
ExitProcess(0);
}
pragma(startaddress, start);
////////////////////////////
When compiling with -m64 or -m32mscoff, the linker complains:
LINK : fatal error LNK1561: entry point must be defined
Comment #1 by robert.schadek — 2024-12-13T18:26:03Z