masm32 invoking stdout gives no output

后端 未结 1 816
情书的邮戳
情书的邮戳 2021-01-25 05:05

I am using masm32 to compile and link on windows 7, which works just fine with below code. However invoking stdOut isn\'t simply printing anything on my command prompt. what am

相关标签:
1条回答
  • 2021-01-25 05:43

    Solved... i was using the wrong parameter for the linker

    How to link it correctly

    ml /c /coff /Cp hello.asm
    link /subsystem:console /libpath:c:\masm32\lib hello.obj
    

    How NOT to link this program

    ml /c /coff /Cp hello.asm
    link /subsystem:windows /libpath:c:\masm32\lib hello.obj
    
    0 讨论(0)
提交回复
热议问题