Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Viewing contents of linker command file

Viewing contents of linker command file

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
4 Posts 2 Posters 708 Views
  • 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.
  • G Offline
    G Offline
    glennr
    wrote on last edited by
    #1

    Hi,

    I'm trying to debug the build of a Qt Creator project that uses the MSVC toolchain.
    It puts the link command in temporary linker command files (prefixed by @ in the command line below).

    link /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" /MANIFEST:embed /OUT:"debug\MyApp.exe" @"C:\Users\dev\AppData\Local\Temp\MyApp.exe.5292.282.jom"
    

    How can I see the contents of the linker command file?

    jsulmJ 1 Reply Last reply
    0
    • G glennr

      Hi,

      I'm trying to debug the build of a Qt Creator project that uses the MSVC toolchain.
      It puts the link command in temporary linker command files (prefixed by @ in the command line below).

      link /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" /MANIFEST:embed /OUT:"debug\MyApp.exe" @"C:\Users\dev\AppData\Local\Temp\MyApp.exe.5292.282.jom"
      

      How can I see the contents of the linker command file?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @glennr said in Viewing contents of linker command file:

      How can I see the contents of the linker command file?

      You mean C:\Users\dev\AppData\Local\Temp\MyApp.exe.5292.282.jom? Well, open it in an editor, or do I misunderstand the question?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      G 1 Reply Last reply
      0
      • jsulmJ jsulm

        @glennr said in Viewing contents of linker command file:

        How can I see the contents of the linker command file?

        You mean C:\Users\dev\AppData\Local\Temp\MyApp.exe.5292.282.jom? Well, open it in an editor, or do I misunderstand the question?

        G Offline
        G Offline
        glennr
        wrote on last edited by
        #3

        @jsulm said in Viewing contents of linker command file:

        @glennr said in Viewing contents of linker command file:

        How can I see the contents of the linker command file?

        You mean C:\Users\dev\AppData\Local\Temp\MyApp.exe.5292.282.jom? Well, open it in an editor, or do I misunderstand the question?

        The linker (or something) deletes the file when it's finished with it.

        Maybe there's a setting somewhere to make it use a plain command line or to not delete the file, but I couldn't find any.

        G 1 Reply Last reply
        1
        • G glennr

          @jsulm said in Viewing contents of linker command file:

          @glennr said in Viewing contents of linker command file:

          How can I see the contents of the linker command file?

          You mean C:\Users\dev\AppData\Local\Temp\MyApp.exe.5292.282.jom? Well, open it in an editor, or do I misunderstand the question?

          The linker (or something) deletes the file when it's finished with it.

          Maybe there's a setting somewhere to make it use a plain command line or to not delete the file, but I couldn't find any.

          G Offline
          G Offline
          glennr
          wrote on last edited by glennr
          #4

          According to the linker documentation the /NOLOGO flag suppresses the output from the command files.

          To make it show the linker comands I added this to the win32 section of the .pro file.

          QMAKE_LFLAGS -= /NOLOGO
          
          1 Reply Last reply
          2

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved