delphidcc32

DCC32 command-line compiler completes successfully, but does not generate the EXE file


I'm using the Delphi 5 command-line compiler to do a build. The build does not report any errors, however it does not generate the EXE file either.

I can confirm the following:


EDIT Although I experienced this with Delphi 5, it is not specific to that version. The Delphi Bug List confirmed the issue in at least D4-D6.


Solution

  • After a lengthy investigation, I've managed pinpoint the problem.

    You can test the bug with the following simple project:

    program TestDCC32ObjExportAll;
    
    {$OBJEXPORTALL ON}
    
    begin
    end;
    

    Fortunately we don't use BCB at all, so I've simply disabled the directive wherever it occurred.


    EDIT
    The wonderful resource The Delphi Bug List reports that the issue was confirmed to exist in Delphi 4, 5, and 6. Unfortunately, The Delphi Bug List was discontinued after that. :(