다음을 통해 공유


/OUT (Output File Name)

 

The latest version of this topic can be found at -OUT (Output File Name).

OUT:filename

  
## Remarks  
 where:  
  
 *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](../Topic/-MAP%20\(Generate%20Mapfile\).md) (/MAP) and [/IMPLIB](../Topic/-IMPLIB%20\(Name%20Import%20Library\).md).  
  
### To set this linker option in the Visual Studio development environment  
  
1.  Open the project's **Property Pages** dialog box. For details, see [Setting Visual C++ Project Properties](../Topic/Working%20with%20Project%20Properties.md).  
  
2.  Click the **Linker** folder.  
  
3.  Click the **General** property page.  
  
4.  Modify the **Output File** property.  
  
### To set this linker option programmatically  
  
-  See [OutputFile](assetId:///P:Microsoft.VisualStudio.VCProjectEngine.VCLinkerTool.OutputFile?qualifyHint=False&autoUpgrade=True).  
  
## See Also  
 [Setting Linker Options](../Topic/Setting%20Linker%20Options.md)   
 [Linker Options](../Topic/Linker%20Options.md)