I'm not sure if this is a compiler problem. I have the following in one file:
And this in another:
And I get a redeclaration error. A new file opens up and in it is nothing but a blank screen amd a cursor. It's a directX9 file too. Now I understand it is likely being caused by the same header included in two files, but how on earth can I give each file independent access to the same code when they both need it without causing this error?
Is this a compiler issue? I'm using Code::Blocks has the GNC compiler I think. Anyways, I'm stumped!! Any ideas - can I just lay my code out in a different way to get round this? Thanks
here's the specific error:
DirectX SDK (February 2010)\Include\d3d9types.h|51|
multiple definition of `MeshSoldier::load_soldier(IDirect3DDevice9*)'|