LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hadimani
    New Member
    • Sep 2007
    • 5

    LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main

    Hi i am getting error LNK2001: unresolved external symbol_function name
    where these functions are called in the main function.
  • Meetee
    Recognized Expert Contributor
    • Dec 2006
    • 928

    #2
    Originally posted by hadimani
    Hi i am getting error LNK2001: unresolved external symbol_function name
    where these functions are called in the main function.
    I think you have not linked some library. Also search on MSDN (google) regarding error LNK2001 and relate it's explanation with your code. You will find the solution.

    Regards

    Comment

    • hadimani
      New Member
      • Sep 2007
      • 5

      #3
      LIBCD.lib(crt0. obj) : error LNK2001: unresolved external symbol _main

      Shall i have to add the library file LIBCD.lib in order to resolve my problem?
      if so give me a link to download the corresponding library file

      Comment

      • weaknessforcats
        Recognized Expert Expert
        • Mar 2007
        • 9214

        #4
        Is there a main() in your code??

        Comment

        • weaknessforcats
          Recognized Expert Expert
          • Mar 2007
          • 9214

          #5
          Are these your functions? If so, you have not included the function definitions in your build. If they are library functions you need to add the appropriate library to the list of linker dependencies.

          The LNK2001 tells me you are using Visual Studio.

          Comment

          • sicarie
            Recognized Expert Specialist
            • Nov 2006
            • 4677

            #6
            hadimani-

            Please do not double post.

            Comment

            • kla
              New Member
              • Oct 2007
              • 1

              #7
              Originally posted by hadimani
              Hi i am getting error LNK2001: unresolved external symbol_function name
              where these functions are called in the main function.
              you can resolved by win32 console application

              Comment

              • hadimani
                New Member
                • Sep 2007
                • 5

                #8
                Originally posted by weaknessforcats
                Is there a main() in your code??
                yes.I had main in my program

                Comment

                • weaknessforcats
                  Recognized Expert Expert
                  • Mar 2007
                  • 9214

                  #9
                  Maybe you could post a piece of your code.

                  Comment

                  Working...