-1

I don't know if I have a circular inclusion problem or not. I have three headers files:

file A:  needs files B and C
file B:  needs file A
file C:  needs files A and B

I've tried different ways of including files, and have include guards on each header file. But I still get compilation errors with each way I try. Is it possible to make this work with includes?

Alex
  • 119
  • 3
  • 9

1 Answers1

3

You have clearly described a circular dependency. Have you tried using forward declarations?

Brian A. Henning
  • 1,374
  • 9
  • 24