I installed masm32 on my Windows 7 machine. I downloaded masm32 from:
http://www.masm32.com/download.htm
Installed it. I added the path, D:masm32in to the PATH environment variable. Now, I am trying to assemble and link an example program. It creates the object file but does not create the executable file.
sample program:
.586p
.model flat, stdcall
_data segment
_data ends
_text segment
start:
ret
_text ends
end start
Wrote a command that creates an object file with .obj extension:
C:UserssnxxDesktop>ml.exe /c /coff prog.asm
Output:
Microsoft (R) Macro Assembler Version 6.14.8444
Copyright (C) Microsoft Corp 1981-1997. All rights reserved.
Assembling: prog.asm
Now I want to create an executable file. The linker directory is located, D:masm32in. I wrote this command in cmd.exe:
C:UserssnxxDesktop>link.exe /subsystem:windows prog.obj
Output:
link: cannot create link 'prog.obj' to '/subsystem:windows': No such file or directory
question from:
https://stackoverflow.com/questions/65887238/masm32-no-such-file-or-directory 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…