www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12340] New: /DELEXECUTABLE does not work

reply d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12340

           Summary: /DELEXECUTABLE does not work
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Optlink
        AssignedTo: nobody puremagic.com
        ReportedBy: andrej.mitrovich gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich gmail.com> 2014-03-10
13:09:22 PDT ---
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.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 10 2014
next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12340


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla digitalmars.com
            Version|unspecified                 |D1 & D2


--- Comment #1 from Walter Bright <bugzilla digitalmars.com> 2014-03-10
13:44:55 PDT ---
Crash? That doesn't look like a crash.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 10 2014
prev sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12340



--- Comment #2 from Andrej Mitrovic <andrej.mitrovich gmail.com> 2014-03-10
13:47:19 PDT ---
(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. -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 10 2014