How to compile using nasm on MacOSX

后端 未结 3 641
灰色年华
灰色年华 2021-02-13 22:15

I am trying to compile and link my first program on Assembler. I try to compile the following code:

; %include \"stud_io.inc\"    
global _main     

section .te         


        
3条回答
  •  醉话见心
    2021-02-13 22:59

    maybe try static linking?

    ld -macosx_version_min 10.13 -e _main -static main.o
    

提交回复
热议问题