robinbloke: (Default)
robinbloke ([personal profile] robinbloke) wrote2003-02-17 11:21 am

(no subject)

You know it's going to be one of those weeks when...

It takes you half a day to get

void main(void)
{

}

to compile.

Gotta love those embedded linkers with no help whatsoever.
emperor: (Default)

[personal profile] emperor 2003-02-17 03:59 am (UTC)(link)
That'll be 'cos main should return int, then, won't it? :-p

[identity profile] naranek.livejournal.com 2003-02-17 04:19 am (UTC)(link)
I was just thinking that ... and it's very possible that you ought to do:

int main(int argn, char *args[])


If your environment isn't smart enough to not pass them if int takes void, or you'll end up with crap on the stack.

[identity profile] robinbloke.livejournal.com 2003-02-17 05:48 am (UTC)(link)
Cheers, the actual problem was getting the linker to work for the chipset I was trying to use tho'; I'd made a stub from a different (working) compile on a different chip, but couldn't get it to give me output intel stylee. Ta anyway :)