¡@

Home 

c++ Programming Glossary: spritesheet.h

Circular Dependencies / Incomplete Types

http://stackoverflow.com/questions/7666665/circular-dependencies-incomplete-types

The situation is as follows Stuffcollection.h #include Spritesheet.h class Stuffcollection public void myfunc Spritesheet spritesheet.. unsigned int myvar 5 spritesheet spritevar void myfunc2 Spritesheet.h #include Stuffcollection.h class Spritesheet public void init.. be due to a circular dependency. Now if I change #include Spritesheet.h to the Forward Declaration class Spritesheet in Stuffcollection.h..