Gast
#177811
Tach!
Habe folgendes Problem: Ich möchte wissen wie groß das Element data der
Struktur ist, welches ein array ist:
typedef struct
{
unsigned char width;
unsigned char height;
unsigned char data[];
} t_bitmap;
t_bitmap testmap PROGMEM =
{
10, 16,
{
1, 2, 3, 4, 5, 6, 7, 8, 9, 10,
2, 4, 8, 16, 32, 64, 128, 8, 9, 10
}
};
sizeof(testmap.data) bringt die fehlermeldung
"main.c:57: error: invalid application of `sizeof' to an incomplete
type"
sizeof(testmap.height) geht dagegen.
Am Progmem liegts nicht, ohne progmem gibts den gleichen fehler.
Weiß jemand Rat ?
MfG
Stefan