Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Solve error

Solve error

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 2159113
    wrote on last edited by
    #1

    after I compile my programme, my programme got a lot of error and most of the error are almost the same. And I not understand the error can somebody tell me...:confused: myExceptionTester.obj : error LNK2005: _main already defined in myClient.obj myExceptionTester.obj : error LNK2005: "class myLog winLog" (?winLog@@3VmyLog@@A) already defined in myClient.obj myHostInfoTester.obj : error LNK2005: _main already defined in myClient.obj myHostInfoTester.obj : error LNK2005: "class myLog winLog" (?winLog@@3VmyLog@@A) already defined in myClient.obj myLogTester.obj : error LNK2005: _main already defined in myClient.obj

    A 1 Reply Last reply
    0
    • U User 2159113

      after I compile my programme, my programme got a lot of error and most of the error are almost the same. And I not understand the error can somebody tell me...:confused: myExceptionTester.obj : error LNK2005: _main already defined in myClient.obj myExceptionTester.obj : error LNK2005: "class myLog winLog" (?winLog@@3VmyLog@@A) already defined in myClient.obj myHostInfoTester.obj : error LNK2005: _main already defined in myClient.obj myHostInfoTester.obj : error LNK2005: "class myLog winLog" (?winLog@@3VmyLog@@A) already defined in myClient.obj myLogTester.obj : error LNK2005: _main already defined in myClient.obj

      A Offline
      A Offline
      Abebe
      wrote on last edited by
      #2

      The libraries you are linking (myExceptionTester, myHostInfoTester + myLogTester) probably already have a 'main' function. Check your libraries and remove the 'main' functions. You don't need these anyway, since these are libraries, which are used in other applications. Er zit een korstje op mijn aars.

      U 1 Reply Last reply
      0
      • A Abebe

        The libraries you are linking (myExceptionTester, myHostInfoTester + myLogTester) probably already have a 'main' function. Check your libraries and remove the 'main' functions. You don't need these anyway, since these are libraries, which are used in other applications. Er zit een korstje op mijn aars.

        U Offline
        U Offline
        User 2159113
        wrote on last edited by
        #3

        what is unresolved external symbol "public: __thiscall...:confused:

        T 1 Reply Last reply
        0
        • U User 2159113

          what is unresolved external symbol "public: __thiscall...:confused:

          T Offline
          T Offline
          toxcct
          wrote on last edited by
          #4

          what do you think it is ? unresolved external symbol means that the linker was looking for an external symbol (defined outside the .c/.cpp file) but could not find it... you are missing some lib files...


          TOXCCT >>> GEII power
          [toxcct][VisualCalc]

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups