osx - How can I successfully link an assembly program on OS X? -
i learning assembly langauage, , reading book programming ground up. in first programming example
movl $1, %eax # movl $0, %ebx # int $0x80 #
i can assembly object file. when run ld exit.o exit
, following error shows:
ld: warning: -macosx_version_min not specified, assuming 10.8 undefined symbols architecture x86_64: "start", referenced from: implicit entry/start main executable ld: symbol(s) not found inferred architecture x86_64
how can solve problem? running environment macos 10.9
the book you're reading assembly programming linux systems, not mac os x. while they're similar, they're not same, when comes low-level programming — if want follow directions in book, set linux virtual machine , use that.
Comments
Post a Comment