#46070 - whodoo - Sun Jun 19, 2005 3:14 pm
I have a problem I've been struggling with for a long time now. Suppose I have a header file containing definitions, variables and typedefs. I want to use this file in the entire program.
SupposeI have another header file (with some prototypes) where I need this definitions and variables. This mean that I have to include the other header file in this header.
Then, when I'm including them both header files in my "main file" I get "multiple definitions"-errors. How can I solve this?
SupposeI have another header file (with some prototypes) where I need this definitions and variables. This mean that I have to include the other header file in this header.
Then, when I'm including them both header files in my "main file" I get "multiple definitions"-errors. How can I solve this?