mattallen37:
Why does RCXIR.h get included multiple times?Shouldn't the
#ifndef RCXIR_h
#define RCXIR_h
code protect against that?
You can't prevent the compiler from including an .h file multiple times. You can however avoid multiple definitions of its contents in the same compilation unit by using the #ifdef guard.
IOW, the #ifdef guard does protects against multiple inclusions, but not in the sense that it prevents the compiler from reading and parsing the file. Instead it prevents "double compilations" of a .h file in the context of a compilation unit (i.e. cpp file).