description | title | ms.date | f1_keywords | helpviewer_keywords | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Learn more about: /OUT (Output File Name) |
/OUT (Output File Name) |
03/24/2025 |
|
|
/OUT:filename
filename
A user-specified name for the output file. It replaces the default name. When expanded, the fully qualified filename must not exceed MAX_PATH
(260 characters).
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.
-
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 > General property page.
-
Modify the Output File property.
- See xref:Microsoft.VisualStudio.VCProjectEngine.VCLinkerTool.OutputFile%2A.