I assumed that when you used: #ifndef MyHeaderFile #define MyHeaderFile ... #endif
... whatever is inside the define would only be defined once, no matter how many files have that header in it. I have a project where I have split it up into several files, each with their own header. Now, I have put in the headers the #ifndef code, however, if I don't make the variables static, I get a linker error that says the variable is already declared another file (the first file compiled with the header included). It seems to me that ifndef is not working. Or maybe is that the way it is supposed to work? If so, than how can I use my header file to share a variable between two different files? If I leave it static, then the second file does not get the information. Do I just have to move to one huge header file? Any help on this would be greatly appreciated. Thank you very much. Sandra Webb -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
