[Issue 9683] New: RDMD: Emit error on missing or unexpected main function

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Mar 10 11:54:07 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9683

           Summary: RDMD: Emit error on missing or unexpected main
                    function
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: andrej.mitrovich at gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-03-10 11:54:06 PDT ---
After https://github.com/D-Programming-Language/dmd/pull/1732 is pulled RDMD
should be able to the following:

1) Emit an error on missing main if 'entry' is not found. This will avoid
displaying linker error messages.

2) When RDMD supports building libraries (e.g. using the -lib or maybe
--lib/--static switch) it should warn or error if a 'main' function is found.
This will avoid linker errors for multiply defined 'main' symbols when the user
links the built static library with his code at a later point.

3) When RDMD supports building DLLs it should verify there's an entry point and
that the entry point is dllmain.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list