Vladimir Panteleev wrote:
On Sun, 13 Feb 2011 08:00:57 +0200, golgeliyele <usul...@gmail.com> wrote:

The error reporting has issues as well. I noticed that the compiler leaks low level errors to the user. If you forget to add a main to your
app or misspell it, you get errors like:
====
Undefined symbols:
  "__Dmain", referenced from:
_D2rt6dmain24mainUiPPaZi7runMainMFZv in libphobos2.a(dmain2_513_1a5.o)
====
I mean, wow, this should really be handled better.

This has been brought up before. Walter insists it's not a problem.

In C++, you get essentially the same thing from g++:

/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/crt1.o: In function 
`_start':
(.text+0x20): undefined reference to `main'
collect2: ld returned 1 exit status

Reply via email to