Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
356 views
in Technique[技术] by (71.8m points)

assembly - masm32 No such file or directory

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...