请教,vscode编译c++错误于作于域:A::square(int)

Undefined symbols for architecture arm64:
"A::square(int)", referenced from:
_main in main-4f4c4f.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)