You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This program compiles and links fine with the command:
$ dmd -L/ENTRY:_mainCRTStartup test.d
However, if you uncomment the GetVersion line, linking breaks:
OPTLINK (R) for Win32 Release 8.00.15Copyright (C) Digital Mars 1989-2013 All rights reserved.http://www.digitalmars.com/ctg/optlink.htmlOPTLINK : Error 180: No Match Found for Export/ENTRY - : _mainCRTStartup--- errorlevel 1
To fix linking, the leading underscore needs to be removed from the command line:
$ dmd -L/ENTRY:mainCRTStartup test.d
The text was updated successfully, but these errors were encountered:
Transferred from: https://issues.dlang.org/show_bug.cgi?id=13984
User @CyberShadow reported (2015-01-15 13:59:20 CET):
The text was updated successfully, but these errors were encountered: