Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/assembly/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio 2010 程序集链接:致命错误L1093:找不到对象文件_Visual Studio 2010_Assembly_X86_Masm - Fatal编程技术网

Visual studio 2010 程序集链接:致命错误L1093:找不到对象文件

Visual studio 2010 程序集链接:致命错误L1093:找不到对象文件,visual-studio-2010,assembly,x86,masm,Visual Studio 2010,Assembly,X86,Masm,我想在VisualStudio2010中编写16位8086汇编代码 但给了我一个错误: 代码: 输出显示以下错误: Link: Microsoft (R) Segmented Executable Linker Version 5.60.339 Dec 5 1994 Copyright (C) Microsoft Corp 1984-1993. All rights reserved. warning L4017: /ERRORREPORT : unrecognized optio

我想在VisualStudio2010中编写16位8086汇编代码 但给了我一个错误: 代码:

输出显示以下错误:

Link:  
Microsoft (R) Segmented Executable Linker  Version 5.60.339 Dec  5 1994
Copyright (C) Microsoft Corp 1984-1993.  All rights reserved.  
warning L4017: /ERRORREPORT : unrecognized option name; option ignored
LINK : fatal error L1093: Files\Microsoft Visual Studio 10.0\VC\bin\link.exe : 
object file not found
Build FAILED.

我该怎么办?

真的不知道问题出在哪里。我从未使用VS进行组装。有很多优秀的汇编IDE比VS IMHO-RadASM、WinASM更好。 此代码:

.MODEL small
.STACK 100h
.data
 message BYTE "Hello, world!","$"
.code
_start:
mov ah,9
lea dx,message ; addr of buffer
int 21h
END _start
汇编并链接此批处理文件:

@ECHO ON
del dosdisplay.exe
ML.EXE /DMASM /DDOS /Zm /c /nologo /I"d:\masm32\Include" "dosdisplay.asm"
link16.exe /NOLOGO "dosdisplay.obj" "",,,,,""
我使用的汇编程序和链接器版本:

Microsoft(R)宏汇编程序版本6.15.8803

Microsoft(R)分段可执行链接器版本5.60.339 1994年12月5日


什么是链接?那不是32位版本吗?还是16位的名称相同?不确定,这两个文件/版本已经在DOS应用程序中使用了很多年了。

这个问题出现了:

1.由于.asm文件的名称很长。缩短文件名并获得所需的结果

2.由于链接文件时路径错误


你为什么不在回答你的另一个问题时使用start:和end start?我用了start,但忘了把它放在问题里了!它告诉您找不到目标文件。ml有没有给你任何错误?所有的输出都是我在上面写的!我认为ml没有错误。你能把你的答案扩大一点吗?
@ECHO ON
del dosdisplay.exe
ML.EXE /DMASM /DDOS /Zm /c /nologo /I"d:\masm32\Include" "dosdisplay.asm"
link16.exe /NOLOGO "dosdisplay.obj" "",,,,,""