description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Learn more about: /MACHINE (Specify Target Platform) |
/MACHINE (Specify Target Platform) |
03/25/2022 |
|
|
8d41bf4b-7e53-4ab9-9085-d852b08d31c2 |
/MACHINE:
{ARM
|ARM64
|ARM64EC
|EBC
|X64
|X86
}
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. If such an error occurs, specify /MACHINE
.
-
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 > Advanced property page.
-
Modify the Target Machine property.
- See xref:Microsoft.VisualStudio.VCProjectEngine.VCLinkerTool.TargetMachine%2A.