Hi
I'm writing a basic game, but when I try to compile it I get ~80 linker errors. Those linker errors are caused by some symbols that I include in a standard header file and gets redifend all the time.
I've tried to stop this by writing
and the normalCode:#pragma once
and rebuilt the whole thing 4 times but nothing seems to work.Code:#ifndef _HEADER_FILE #define...
This is an example of a linker error:
All are quite similar. Everyone is about a global variable that I define in the header.Code:CGameApp.obj : error LNK2005: "struct D3DXCOLOR g_Black" (?g_Black@@3UD3DXCOLOR@@A) already defined in main.obj
Would apreciate some help with this.
Thanks
Daniel



LinkBack URL
About LinkBacks



I'll include them in main or something and make them external there. Again, thanks a lot for the help.