[llvm-bugs] [Bug 38972] lld-link should have a better diag on missing main / WinMain, probably by defaulting to the subsystem-specific entry point even if main isn't there

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Oct 3 10:05:41 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=38972

Nico Weber <nicolasweber at gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from Nico Weber <nicolasweber at gmx.de> ---
r343698 made lld-link's output similar to link.exe's: 

lld-link: error: undefined symbol: _main
>>> referenced by f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl:78
>>>               libcmt.lib(exe_main.obj):("int __cdecl invoke_main(void)" (?invoke_main@@YAHXZ))
>>> referenced by f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl:283
>>>               libcmt.lib(exe_main.obj):("int __cdecl __scrt_common_main_seh(void)" (?__scrt_common_main_seh@@YAHXZ))


Good enough for now

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20181003/04605c96/attachment.html>


More information about the llvm-bugs mailing list