Hi.
I get these strange linker errors while compiling a dx app.....i have tried anything to solve them, but I just can't figure out what causes them....
Hope you have better eyes than me!
Code:--------------------Configuration: test - Win32 Debug-------------------- Linking... GPTEMP2.OBJ : error LNK2005: "long __stdcall WindowProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WindowProc@@YGJPAUHWND__@@IIJ@Z) already defined in main.obj GPTEMP2.OBJ : error LNK2005: _WinMain@16 already defined in main.obj GPTEMP2.OBJ : error LNK2005: "int __cdecl Game_Init(void *)" (?Game_Init@@YAHPAX@Z) already defined in main.obj GPTEMP2.OBJ : error LNK2005: "int __cdecl Game_Shutdown(void *)" (?Game_Shutdown@@YAHPAX@Z) already defined in main.obj GPTEMP2.OBJ : error LNK2005: "int __cdecl Game_Main(void *)" (?Game_Main@@YAHPAX@Z) already defined in main.obj GPTEMP2.OBJ : error LNK2005: "struct HINSTANCE__ * main_instance" (?main_instance@@3PAUHINSTANCE__@@A) already defined in main.obj GPTEMP2.OBJ : error LNK2005: "struct HWND__ * main_window_handle" (?main_window_handle@@3PAUHWND__@@A) already defined in main.obj GPTEMP2.OBJ : error LNK2005: "char * buffer" (?buffer@@3PADA) already defined in main.obj Debug/test.exe : fatal error LNK1169: one or more multiply defined symbols found Error executing link.exe. test.exe - 9 error(s), 0 warning(s)





Reply With Quote