ldc-mingw - Windows sample - undefined reference to `_Dmain'

dnewbie run3 at myopera.com
Mon Oct 14 06:32:29 PDT 2013


Error 'undefined reference to `_Dmain'' when compiling 
samples\d\winsamp.d.

Workaround:
a) add main() that calls myWinMain
b) run objcopy for setting subsystem=windows and to get rid of 
the 'DOS window':
objcopy --subsystem windows:5.00 winsamp.exe winsamp2.exe

Example:
http://dpaste.dzfl.pl/8698696f


More information about the digitalmars-d-ldc mailing list