Help with #includes
OK, I''ve just spent the past two and a half hours putting together a pretty little framework for Windows/DirectX. I typed that last line of code and hit the compile button. After fixing my typos, I found that I was getting errors about multiply defining symbols. Essentially, I have three CPP files, "WindowsSetup.CPP", "DirectXSetup.CPP" and "GameMain.CPP". All of them include "Globals.h" which includes "Defs.h". I figured this would work but I get errors all over the place about redefinitions in the first and last pf the three files (though not the second). What the hell have I done?
BTW, I tried putting the entire contents of the file inside an #ifndef ... #endif block and it was to no avail.
Thanks in advance.
-Goku
SANE Productions Homepage
_______________________________
"To understand the horse you'll find that you're going to be working on yourself. The horse will give you the answers and he will question you to see if you are sure or not."
- Ray Hunt, in Think Harmony With Horses
ALU - SHRDLU - WORDNET - CYC - SWALE - AM - CD - J.M. - K.S. | CAA - BCHA - AQHA - APHA - R.H. - T.D. | 395 - SPS - GORDIE - SCMA - R.M. - G.R. - V.C. - C.F.
"To understand the horse you'll find that you're going to be working on yourself. The horse will give you the answers and he will question you to see if you are sure or not."
- Ray Hunt, in Think Harmony With Horses
ALU - SHRDLU - WORDNET - CYC - SWALE - AM - CD - J.M. - K.S. | CAA - BCHA - AQHA - APHA - R.H. - T.D. | 395 - SPS - GORDIE - SCMA - R.M. - G.R. - V.C. - C.F.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement