On Monday, 17 December 2012 at 19:29:04 UTC, Russel Winder wrote:
I tried this on spec earlier and got:

|> dmd -ofprog prog.o -L-L. -L-lmylib
/usr/lib/x86_64-linux-gnu/libphobos2.a(dmain2_45f_1a5.o): In function `_D2rt6dmain24mainUiPPaZi7runMainMFZv': src/rt/dmain2.d:(.text._D2rt6dmain24mainUiPPaZi7runMainMFZv+0x18): undefined reference to `_Dmain'

Your program seems to be missing a main() function, the rest is just noise (DMD emits certain symbols to the main module only).

David

Reply via email to