When you use the #pragma once you do not need the #ifdef / #endif that surrounds the file. Just use #pragma once in all header files