osx上的程序集可执行文件

时间:2013-09-11 23:35:49

标签: macos assembly osx-snow-leopard nasm

我得到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。我做错了什么?

0 个答案:

没有答案