Yahoo Groups archive

AVR-Chat

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

Message

Re: [AVR-Chat] What does this error mean?

2005-02-22 by Paul Colin Gloster

On Tue, Feb 22, 2005 at 05:57:59PM -0000, Leon Heller wrote:

"Which compiler?

It looks like the ANSI C you are using isn't liked by your compiler. Try 
using old-fashioned K&R C."

Yikes no! That would make things worse. From item 12 on
WWW.computing.DCU.Ie/~cdaly/projects/ :
"C++ Program checker
Java had a number of small improvements to C++ (as well as a number of 
big ones). These include

a. Insisting that a boolean value or expression be used in a conditional 
test e.g. if(x) becomes if(x != 0). 
b. The comma operator has been removed, so you can't write the compile 
nonsense while(i=0, i<10, i++). 
c. You cannot use uninitialised variables. 
Write a Java program that parses a C++ program and identifies if it 
breaks any of the above rules."

Though Charlie Daly was specifically talking about C++ there, everything 
in that quotation applies equivalently to C89 and K&R C. Can you actually 
think of any time K & R C would be a good choice if C89 or C99 are 
available for the same target?

Regards,
Colin Paul

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.