Possible Duplicate:
How to declare a structure in a header that is to be used by multiple files in c?
c code, header file issue.
I have a header (list.h) file defining two linked list structures, and another queue.h which includes the definition of a queue.
There is a struct that includes the lists and queue together, defined in list.h, which therefore depends on the queue.h file.
A struct containing all the others is defined in the list.h file and the functions that deal with it are defined in the list.c file. Consequently both files need to include queue.h.
However if i include it in both the list.h and list.c files i get the following error.
..\/queue.h:13:16: error: redefinition of 'struct qqq'
..\/queue.h:13:16: note: originally defined here
if not in one or the other then other errors to the effect that the header is missing: it doesn't define the structure containing the queue.
Is there any way to do this...?