我得到nasm,我想将程序集编译成可执行文件。我一直收到错误:
ld: warning: ignoring file firststart.asm, file was built for unsupported file format which is not the architecture being linked (x86_64)
Undefined symbols for architecture x86_64:
"_main", referenced from:
start in crt1.10.6.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
当我尝试使用gcc编译时。我正在使用xcode附带的gcc。我做错了什么?