Re: "No stack address"

2012-04-17 Thread Andrej Mitrovic
On 4/17/12, Somedude wrote: > Do you have any idea where this is explained rdmd --help

Re: "No stack address"

2012-04-17 Thread Somedude
Le 17/04/2012 09:30, Somedude a écrit : > Anyway, I think I'll add this simple piece of info somewhere in the > wiki. I've already cleaned it up a little. Ok, here it is: http://prowiki.org/wiki4d/wiki.cgi?HowTo/UnitTests

Re: "No stack address"

2012-04-17 Thread Somedude
Le 17/04/2012 01:26, Andrej Mitrovic a écrit : > On 4/17/12, Somedude 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 ra

Re: "No stack address"

2012-04-16 Thread Andrej Mitrovic
On 4/17/12, Somedude 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 funct

Re: "No stack address"

2012-04-16 Thread Somedude
Le 16/04/2012 21:51, Andrej Mitrovic a écrit : > On 4/16/12, Somedude wrote: >> OPTLINK : Warning 134: No Start Address > > This means you're missing a void main or int main function. You can > pass --main to rdmd to add it automatically (useful when e.g. > unittesting). All right, now I have a

Re: "No stack address"

2012-04-16 Thread Andrej Mitrovic
On 4/16/12, Somedude wrote: > OPTLINK : Warning 134: No Start Address This means you're missing a void main or int main function. You can pass --main to rdmd to add it automatically (useful when e.g. unittesting).

"No stack address"

2012-04-16 Thread Somedude
I'm trying to compile a D source on win32 with DMD 2.059, and I get this: PS E:\DigitalMars\dmd2\samples> rdmd xinoksort.d OPTLINK (R) for Win32 Release 8.00.12 Copyright (C) Digital Mars 1989-2010 All rights reserved. http://www.digitalmars.com/ctg/optlink.html OPTLINK : Warning 23: No Stack OP