Compile error with struct

1

When trying to compile I am facing the following error:

..: error: storage size of 'PPFila' isn't known
..: error: storage size of 'AUTFila' isn't known

In this line of code

struct  Fila PPFila, AUTFila;

The struct Queue is being in another file queue.c and I am accessing using #include "Queue.h"

    
asked by anonymous 26.07.2016 / 20:59

1 answer

2

Declare struct Fila in file Queue.h and not queue.c . And, of course, include the Queue.h file where you want it to be used

    
26.07.2016 / 21:12