error LNK2005: _menu already defined in main.obj

This is a discussion on error LNK2005: _menu already defined in main.obj within the C Programming forums, part of the General Programming Boards category; FORGET THIS POST! I'VE SOLVED MY PROBLEM... SORRY :-S help! VS2005 is giving me this error: Code: 1>Linking... 1>menuLogin.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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,484
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

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, 01: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, 06: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, 02:01 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21