I have this code and cannot get it to compile. LocationRec is a header file included in colorcube.h and list.h. I have tried moving the ifndef everywhere I can think of to no avail. This is the first time we've used an ifndef and this is how our teacher wants it done in our project, I'm just not sure where it goes in the code or if I'm doing it right.
I put everything from the #ifndef to the #endif in locationrec.h (which is the header file included in both colorcube.h and list.h) and took it out of the client, and it compiles with no errors now. Thank you.