Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Viewing contents of linker command file



  • 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?


  • Lifetime Qt Champion

    @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?



  • @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.



  • 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
    

Log in to reply