Hi All,
I'm writing a c program on my m1 macbook, but when i compiled the project, error occurs:
Undefined symbols for architecture arm64:
"_fp", referenced from:
_main in main.c.o
"_init", referenced from:
_main in main.c.o
ld: symbol(s) not found for architecture arm64
and also, when i exec ld command, it will return some warnings:
ld: warning: platform not specified
ld: warning: -arch not specified
ld: warning: No platform min-version specified on command line
ld: no object files specified
I only install the xcode command line tools and use vscode, i believe it's a link problem but have no idea if it's a bug or my config fault.
Someone has any idea?Thanks