   c++ includes
  inevitably, whenever i write something, this problem strikes, but i cant remember how i usually fix it :|the thing is, i have a few basic types (structs) defined in a header (BaseTypes.h), and this is included by two other headers which both depend on these types, and contain class definitions.The file that contains the main function includes both the files that depend on basetypes, and the compile (vc6) bitches about type redefinitions, assumedly because its ending up including the basetpyes file twice. does anyone know how to fix this :?cheers,-scott   
  You should use inclusion guards for your header files. Basically you use pre-processor defines to mark which headers have already been included, and if it's already been included, ignore the contents of the header. For example:#ifndef MYHEADER_H#define MYHEADER_H// contents of your header go here#endifFor more details, see  this article.   ;  cheers, that worked fine.;  Or if you use only VC6, try this at the begining of your file :#pragma once