Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] Finally, really, actually, starting off with C

2009-01-07 by David VanHorn

> You can declare main like this instead:
>
> void main( void )
> {
>   ....
> }
>
> If you compile your code using the -ffreestanding option, then the
> compiler won't complain that main doesn't return an int.

Ok, I'd already found that I can declare the return as void, but the
compiler does whine about it.
I'm ok with that, although I really do prefer to have no warnings or errors.

I'm definitely not ready to mess with makefiles yet, but I'll keep that in mind.

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.