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:
//c.h class c { .... }; //b.h #include c.h class c {... } //a.h #include b.h #include c.h class a {... }To copy to clipboard, switch view to plain text mode
On compiling there comes an error of class redeclaration ..... how can we prevent this ?
Bookmarks