[cc65] Extern decaration question

Date view Thread view Subject view

From: Adam Dunkels (adam_at_sics.se)
Date: 2001-09-13 00:21:16


It is hard to do anything today without thinking of the horrible terrorist 
attack on the USA yesterday. I therefore wish to express my deepest sympathy 
to the American members of this list, and to everyone who might have lost 
friends or loved ones in this tragic event.

In cc65, the following code generates an error:

extern unsigned char array[10];
unsigned char array[10];

> cc65 test.c
test.c(3): Error: Conflicting types for `array'

The same code compiled in gcc does not generate an error, nor does the 
following: 

extern unsigned char array[];
unsigned char array[10];

Should this be considered as a bug, or is it how the ANSI C specification 
works?

Thanks,

/adam
-- 
Adam Dunkels <adam_at_sics.se>
http://www.sics.se/~adam
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2001-12-14 22:05:42 CET