Results 1 to 3 of 3

Thread: Strange linker errors.....

  1. #1

    Thread Starter
    Frenzied Member CyberCarsten's Avatar
    Join Date
    Sep 1999
    Location
    Aalborg Ø, Denmark
    Posts
    1,544

    Strange linker errors.....

    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)
    razor
    Software Engineer Student, Aalborg University, Denmark
    http://www.cs.auc.dk

    My email at AUC: will get a new email soon
    My website: http://www.razorsoftware.net


    Windows XP Pro/ Gentoo Linux (Laptop)
    Windows XP Pro (Home PC)

  2. #2
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111
    Uhm...

    Debug/test.exe : fatal error LNK1169: one or more multiply defined symbols found

    and several:

    already defined in main.obj

    Yea....

  3. #3

    Thread Starter
    Frenzied Member CyberCarsten's Avatar
    Join Date
    Sep 1999
    Location
    Aalborg Ø, Denmark
    Posts
    1,544
    Le problem is solved!
    razor
    Software Engineer Student, Aalborg University, Denmark
    http://www.cs.auc.dk

    My email at AUC: will get a new email soon
    My website: http://www.razorsoftware.net


    Windows XP Pro/ Gentoo Linux (Laptop)
    Windows XP Pro (Home PC)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width