/MACHINE (Specify Target Platform)

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at -MACHINE (Specify Target Platform).

MACHINE:{ARM|EBC|X64|X86}

  
## Remarks  
 The /MACHINE option specifies the target platform for the program.  
  
 Usually, you don't have to specify the /MACHINE option. LINK infers the machine type from the .obj files. However, in some circumstances, LINK cannot determine the machine type and issues a [linker tools error LNK1113](../Topic/Linker%20Tools%20Error%20LNK1113.md). If such an error occurs, specify /MACHINE.  
  
### 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 **Advanced** property page.  
  
4.  Modify the **Target Machine** property.  
  
### To set this linker option programmatically  
  
1.  See [TargetMachine](assetId:///P:Microsoft.VisualStudio.VCProjectEngine.VCLinkerTool.TargetMachine?qualifyHint=False&autoUpgrade=True).  
  
## See Also  
 [Setting Linker Options](../Topic/Setting%20Linker%20Options.md)   
 [Linker Options](../Topic/Linker%20Options.md)


Show: