Hey guys,
I have 2 header files in my project and one them defines a struct type that the other header uses. If I include the first one in the second one, it thinks I'm tryign to redefine my struct. IE.
1st header: containes a struct definition
2nd header: has a function declaration that uses the strust
do I have to define the struct again in the 2nd one or is there another way?
If I just use the struct in the 2nd one, the function doesn't recognise it and gives me an undefined variable error.
The headers are included in alphabetical order.



LinkBack URL
About LinkBacks


