Greetings, I'm getting an error in my code where I include a header file in more than one location and I get the LNK2005 error during linking. I know that in C a code block is needed around the header file so that it is only included once but I forgot what that code block looks like (I'm used to C++ where this problem doesn't occur).
Isn't it something like?
Am I close? It's been a whileCode:#ifndef HEADER #define HEADER //header code //more header code #ifdef HEADER #endif HEADER