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. tracking down linker errors

tracking down linker errors

Scheduled Pinned Locked Moved C / C++ / MFC
question
4 Posts 3 Posters 14 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.
  • C Offline
    C Offline
    Calin Negru
    wrote on last edited by
    #1

    I there a way to track down the linker errors further than what`s being offered in the "Build output" window?

    Mircea NeacsuM L 2 Replies Last reply
    0
    • C Calin Negru

      I there a way to track down the linker errors further than what`s being offered in the "Build output" window?

      Mircea NeacsuM Offline
      Mircea NeacsuM Offline
      Mircea Neacsu
      wrote on last edited by
      #2

      Not really. You can increase number of linker messages by changing the "Show Progress" option. The "Display all messages" is really verbose. Otherwise, sometimes they can be tricky to trace. Just yesterday I had one where an include directive was used after a

      namespace blah_blah {

      line. Linker was looking for a function definition inside the namespace when it was actually outside.

      Mircea

      1 Reply Last reply
      0
      • C Calin Negru

        I there a way to track down the linker errors further than what`s being offered in the "Build output" window?

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        If you actually provide some details then maybe we can help.

        C 1 Reply Last reply
        0
        • L Lost User

          If you actually provide some details then maybe we can help.

          C Offline
          C Offline
          Calin Negru
          wrote on last edited by
          #4

          I`m not sure what details you are expecting. All I have in the build output window is a one line message: 1>Tutorial07.obj : error LNK2001: unresolved external symbol "void __cdecl CheckCollisions(class std::vector > *,int,class contim *,int)" I know an error of this type means that some parameters don`t match in the function definition, declaration and the place where the function is being used. I did a search for the function name within the code file, everything seems to be fine in the function header (return type, function name and parameters) everywhere. I need more details to know what exactly doesn`t match.

          void CheckCollisions(vector * GAllElements, int UnitCount, contim* OldNewTable,int frame);

          never mind I found the error, it was a parameter mismatch, you have to be extra careful with those.

          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