Thread: error LNK2005: _menu already defined in main.obj

  1. #1
    Registered User IndioDoido's Avatar
    Join Date
    Apr 2007
    Posts
    194

    Unhappy error LNK2005: _menu already defined in main.obj

    FORGET THIS POST!
    I'VE SOLVED MY PROBLEM...

    SORRY :-S


    help!
    VS2005 is giving me this error:

    Code:
    1>Linking...
    1>menuLogin.obj : error LNK2005: _menu already defined in main.obj
    1>E:\VisualStudioProj\SAFW\Debug\SAFW.exe : fatal error LNK1169: one or more multiply defined symbols found
    How can i resolve this???
    Last edited by IndioDoido; 05-17-2007 at 11:51 AM.
    "Artificial Intelligence usually beats natural stupidity."

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    Perhaphs main.cpp has #include "menuLogin.cpp" rather than #include "menuLogin.h"
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Linking problems in Visual Studio
    By h3ro in forum C++ Programming
    Replies: 5
    Last Post: 03-04-2008, 02:39 PM
  2. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  3. DLL compiling question
    By Noose in forum Windows Programming
    Replies: 2
    Last Post: 12-16-2004, 07:16 AM
  4. the effects of textures on my frame rate
    By DavidP in forum Game Programming
    Replies: 37
    Last Post: 10-03-2003, 11:24 AM
  5. debug to release modes
    By DavidP in forum Game Programming
    Replies: 5
    Last Post: 03-20-2003, 03:01 PM