Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Generates a response file (.RSP) containing the absolute paths of all the files the linker took as input.
This flag was introduced in Visual Studio 2022 version 17.11.
Syntax
/LINKREPROFULLPATHRSP:filename
Argument
filename
Specifies the name of the response file to create. When expanded, the fully qualified filename must not exceed MAX_PATH (260 characters).
Remarks
Rather than generate a full link repro like /LINKREPRO, which copies all the files to a directory and creates a response file with relative paths to that directory, this option writes the names of the files used during linking to the specified file.
For example, given:
- a directory
c:\temp\testthat contains the filestest.cpp,f1.cpp,f2.cpp - the linker command line:
link f1.obj f2.obj test.obj /out:test.exe /LINKREPROFULLPATHRSP:test.rspThe linker producestest.rspcontaining the following lines to reflect the fully qualified paths of the input files:
"c:\temp\test\f1.obj"
"c:\temp\test\f2.obj"
"c:\temp\test\test.obj"
To set this linker option in the Visual Studio development environment
- Open the project's Property Pages dialog box. For details, see Set C++ compiler and build properties in Visual Studio.
- Select the Configuration Properties > Linker > Command Line property page.
- Enter
/LINKREPROFULLPATHRSP:file.rspinto Additional Options. Choose OK or Apply to apply the change.