Hi all. I am having multiple definition compiling errors. I included the #ifndef, #define, #endif lines in my header files. I've seen a post on here suggesting using extern. That didn't work for me either. This is a snippet from my header file.
#ifndef ListVars_h
#define ListVars_h
extern int bonesDL = 3;
extern int marrowDL = 4;
#endif
If I include ListVars.h into multiple .cpp files and compile, I get the error. Any ideas? I'm using Dev-C++ with Windows XP.
Thank you!
-Michael