Comment #0 by andrej.mitrovich — 2014-03-10T13:09:22Z
Test-case:
-----
void main();
-----
$ dmd -run test.d
DMD v2.066 DEBUG
OPTLINK (R) for Win32 Release 8.00.13
Copyright (C) Digital Mars 1989-2010 All rights reserved.
http://www.digitalmars.com/ctg/optlink.html
OPTLINK : Warning 23: No Stack
OPTLINK : Warning 134: No Start Address
---------------------------
Unsupported 16-Bit Application
---------------------------
The program or feature "\??\C:\dev\code\d_code\test.exe" cannot start or run due to incompatibity with 64-bit versions of Windows. Please contact the software vendor to ask if a 64-bit Windows compatible version is available.
Now let's try with /NOEXECUTABLE:
$ dmd -L/NOEXECUTABLE -run test.d
Same crash. The problem (as I see it) is that OPTLINK creates a warning when a start address is missing, rather than an error, so /NOEXECUTABLE has no effect.
Comment #1 by bugzilla — 2014-03-10T13:44:55Z
Crash? That doesn't look like a crash.
Comment #2 by andrej.mitrovich — 2014-03-10T13:47:19Z
(In reply to comment #1)
> Crash? That doesn't look like a crash.
Well it's a dialog box, isn't it? And it's completely uninformative to what the real problem is. The problem is Optlink generates an empty .exe file even if you use /DELEXECUTABLE.
Comment #3 by pro.mathias.lang — 2020-04-09T08:31:01Z
Marking as a duplicate of 5215 because the root cause is the same.
The issue itself has been moved to https://github.com/DigitalMars/optlink/issues/24
*** This issue has been marked as a duplicate of issue 5215 ***