Skip to content

Latest commit

 

History

History
43 lines (28 loc) · 1.53 KB

out-output-file-name.md

File metadata and controls

43 lines (28 loc) · 1.53 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: /OUT (Output File Name)
/OUT (Output File Name)
11/04/2016
VC.Project.VCLinkerTool.OutputFile
/out
output files, name linker option
-OUT linker option
OUT linker option
/OUT C++ linker option
linker [C++], output files
976210a4-e51f-4cfb-af5e-c16344455834

/OUT (Output File Name)

/OUT:filename

Arguments

filename
A user-specified name for the output file. It replaces the default name.

Remarks

The /OUT option overrides the default name and location of the program that the linker creates.

By default, the linker forms the file name using the base name of the first .obj file specified and the appropriate extension (.exe or .dll).

This option the default base name for a .mapfile or import library. For details, see Generate Mapfile (/MAP) and /IMPLIB.

To set this linker option in the Visual Studio development environment

  1. Open the project's Property Pages dialog box. For details, see Set C++ compiler and build properties in Visual Studio.

  2. Select the Configuration Properties > Linker > General property page.

  3. Modify the Output File property.

To set this linker option programmatically

  • See xref:Microsoft.VisualStudio.VCProjectEngine.VCLinkerTool.OutputFile%2A.

See also

MSVC linker reference
MSVC Linker Options