dmd -D == ouch!!

Damien damien.levac at gmail.com
Sat Sep 28 06:38:25 PDT 2013


Hi,

 From "The D Programming Language" by Andrei Alexandrescu: "If you 
forget about --main, don't worry; the linker will fluently and 
baroquely remind you of that in its native language, encrypted 
Klingon."

So I think that your issue is well known and not a development 
priority at the moment... :P

Cheers,
Damien


> ... but the error message is pretty opaque.  How feasible would 
> it be to handle the case where the -D flag is passed with a 
> nicer error message limiting itself to:
>
>     (.text+0x20): undefined reference to `main'
>     collect2: error: ld returned 1 exit status
>     To build only documentation, use dmd -o- -D


More information about the Digitalmars-d-learn mailing list