我要评分
获取效率
正确性
完整性
易理解

-m64 Compilation Option

Symptom

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

Possible Cause

-m64 is an x86 64-bit application compilation option. The length of int is set to 32 bits, and the lengths of long and pointer are set to 64 bits to generate code for the AMD x86 64-bit architecture. However, the Arm64 platform does not support these settings.

Solution

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