unresolved external symbol _main

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • manjushaba
    New Member
    • Sep 2008
    • 2

    unresolved external symbol _main

    hi i got this following error wen i compiled my program also my program doesnt contain main and i have opened it in console application in vc6++...

    LIBCD.lib(crt0. obj) : error LNK2001: unresolved external symbol _main
    pls help me in this..

    thanks in advance
    manju
  • gpraghuram
    Recognized Expert Top Contributor
    • Mar 2007
    • 1275

    #2
    As you have said your code dosent have main, the error is beocs of that.

    Raghu

    Comment

    • manjushaba
      New Member
      • Sep 2008
      • 2

      #3
      Originally posted by gpraghuram
      As you have said your code dosent have main, the error is beocs of that.

      Raghu

      Any ways thanks Raghu but my code is running sucessfully but the thing is wen i thought of adding a sub program to it then the error comes... my program doesnt gives the output in console it is like wen i run my program a box appears which gives option start and stop.. so ineed the help of finding out which type of project is my program wether is tat MFC and can i use it in console application??? and i am new to c and c++.. pls help me out

      thanks in advance

      Comment

      • Banfa
        Recognized Expert Expert
        • Feb 2006
        • 9067

        #4
        Does your program have a WinMain?
        Does your program have a CApp class instance?
        Is your program C or C++?

        Comment

        Working...