Results 1 to 8 of 8

Thread: already defined in *.obj

Threaded View

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2000
    Location
    Birmingham, AL
    Posts
    1,276

    Question already defined in *.obj

    How can I prevent these link errors, besides keeping all variables and functions in main.cpp?
    Code:
    main.obj : error LNK2005: "struct HINSTANCE__ * hInst" (?hInst@@3PAUHINSTANCE__@@A) already defined in button.obj
    main.obj : error LNK2005: "struct HWND__ * hWndCmd1" (?hWndCmd1@@3PAUHWND__@@A) already defined in button.obj
    main.obj : error LNK2005: "struct HFONT__ * hFont" (?hFont@@3PAUHFONT__@@A) already defined in button.obj
    Release/test.exe : fatal error LNK1169: one or more multiply defined symbols found
    VC++6.0 project attached...
    Attached Files Attached Files
    Last edited by wey97; Aug 19th, 2002 at 08:03 PM.

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