"No stack address"
Somedude
lovelydear at mailmetrash.com
Tue Apr 17 00:30:19 PDT 2012
Le 17/04/2012 01:26, Andrej Mitrovic a écrit :
> On 4/17/12, Somedude <lovelydear at mailmetrash.com> wrote:
>> But running the exe crashes immediately at execution with "unauthorized
>> instruction". Why ?
>
> That's the old exectuable leftover from the previous compile. RDMD
> generates the exe in a temporary folder with a random name and runs it
> immediately. Because the main function doesn't do anything (RDMD
> provides an empty one via --main), the app exited immediately.
>
>> And how do I execute the unit test ?
>
> rdmd -unittest --main test.d
Thanks, it works. BTW, I couldn't find this information. Do you have any
idea where this is explained (in particular the --main switch) that I
overlooked ?
Anyway, I think I'll add this simple piece of info somewhere in the
wiki. I've already cleaned it up a little.
More information about the Digitalmars-d-learn
mailing list