Why the linker is invoked?

Sysprogs forums Forums VisualGDB Why the linker is invoked?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #21561
    b.timofte
    Participant

    After i make an .exe and i press debug the linker is again invoked … Is there any reasin Visual Gdb invoke the linker again ?

    Also the linker is very slow…. It linkes 6 files in around 1 minute….

    #21562
    b.timofte
    Participant

    The repository is at : https://github.com/ISuckGood/BCP

    #21563
    support
    Keymaster

    Hi,

    If it is an external project managed by an external Makefile, the linker is likely re-invoked because the Makefile doesn’t handle dependencies properly.

    You could try re-creating the project as an MSBuild-based project to let VisualGDB handle dependencies, although it might be non-trivial if the project has complex build settings.

    #21564
    b.timofte
    Participant

    I use MsBuild …Linker is called everytime i want to debug although no change in code !!

    #21571
    support
    Keymaster

    Hi,

    If you are using the VisualGDB MSBuild backend, you can see why the linker is invoked by enabling verbose output:

    Tools->Options->Projects and Solutions->Build and Run->MSBuild build output verbosity -> Detailed.

    Then build the project and check for the “Re-linking <…> due to <…> message”. If you are not sure, simply attach the detailed build log here and we can help you understand it.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.