robinbloke: (Default)
[personal profile] robinbloke
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.

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

Date: 2003-02-17 04:19 am (UTC)
From: [identity profile] naranek.livejournal.com
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.

Date: 2003-02-17 05:48 am (UTC)
From: [identity profile] robinbloke.livejournal.com
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 :)

Profile

robinbloke: (Default)
robinbloke

January 2016

S M T W T F S
     12
3456789
10111213141516
17181920212223
24 252627282930
31      

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 17th, 2025 03:37 pm
Powered by Dreamwidth Studios