tooling quality and some random rant
Walter Bright
newshound2 at digitalmars.com
Sun Feb 13 02:38:59 PST 2011
Vladimir Panteleev wrote:
> On Sun, 13 Feb 2011 08:00:57 +0200, golgeliyele <usuldan at 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
More information about the Digitalmars-d
mailing list