Lukas Capek

Array structur and extern declaration

Discussion created by Lukas Capek on Nov 6, 2010
Latest reply on Nov 8, 2010 by Daniel Lundin



I have problem with extern declarition array off structure. I use S08JM.

In main.c I have declaration:


typedef struct {
    u8t   battery;
    u8t   sensor_connect;
    s16t  temperature;
    u16t  humidity;
SENSORS_DATA_STRUCT    Sensors_data[10];


in second file.c I want to use extern declaration:

extern struct SENSORS_DATA_STRUCT Sensors_data[10];


but I can´t compile, extern declaration structure works, but array structure doesn´t work,

Do you know where is problen? thank you