Rate This Document
Findability
Accuracy
Completeness
Readability

-m64 Compilation Option

Symptom

gcc: error: unrecognized command line option '-m64'

Cause

-m64 is an application compilation option for 64-bit x86. To generate code for the AMD x86 64-bit architecture, set int to 32 bits, long to 64 bits, and pointer to 64 bits. However, the ARM64 platform does not support this setting.

Procedure

Set the compilation option of the ARM64 platform to -mabi=lp64.