title | description | ms.date | f1_keywords | helpviewer_keywords | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|
/LTCGOUT (Name LTCG incremental object file) |
The MSVC linker option /LTCGOUT names the incremental link-time code generation object file. |
08/31/2022 |
|
|
The /LTCGOUT
linker option tells the linker where to put the intermediate .iobj
object file for incremental link-time code generation (/LTCG:INCREMENTAL
).
/LTCGOUT:
[pathname
]
pathname
The optional destination directory and filename for the generated .iobj
file. If the /LTCGOUT
option isn't specified when /LTCG:INCREMENTAL
is used, the filename is created by appending .iobj
to the target base filename. If the /LTCGOUT
option is specified with an empty pathname
when /LTCG:INCREMENTAL
isn't used, no .iobj
file is generated.
The /LTCGOUT
linker option tells the linker the path and filename to use for the intermediate .iobj
object file when you specify /LTCG:INCREMENTAL
. If you remove the /LTCG:INCREMENTAL
option from your project, you should also remove any /LTCGOUT
option.
-
Open the project Property Pages dialog box. For more information, see Set compiler and build properties.
-
Select the Configuration Properties > Linker > Optimization property page.
-
Modify the Link Time Code Generation Object File property. The option isn't set if this property is empty.
- See xref:Microsoft.VisualStudio.VCProjectEngine.VCLinkerTool.AdditionalOptions%2A.