hi all,

suppose there are three files a.h,b.h,c.h
which contain classes a,b,c respectively.
and let c.h included in b.h and b.h included in a.h.

Qt Code:
  1. //c.h
  2.  
  3. class c
  4. { ....
  5. };
  6. //b.h
  7. #include c.h
  8. class c
  9. {...
  10. }
  11. //a.h
  12. #include b.h
  13. #include c.h
  14. class a
  15. {...
  16. }
To copy to clipboard, switch view to plain text mode 

On compiling there comes an error of class redeclaration ..... how can we prevent this ?