“LINK : fatal error L1093: start_test.obj : object file not found”报错解决

简介:

    刚开始学汇编时,一个只有几行代码的小程序也报错,仔细检查过后也没发现问题,但是仍然报错


程序源代码:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
assume cs:codesg
 
codesg segment
 
start:  mov ax,0123h
         mov bx,8456h
     add ax,bx
     add ax,ax
         
     mov ax,4c00h
     int  21h
         
codesg ends
 
end start

报错信息:

Microsoft (R) Segmented Executable Linker  Version 5.31.009 Jul 13 1992

Copyright (C) Microsoft Corp 1984-1992.  All rights reserved.


Object Modules [.obj]: start_test.obj

Run File [start_test.exe]: "start_test.exe"

List File [nul.map]: NUL

Libraries [.lib]:

Definitions File [nul.def]:

LINK : fatal error L1093: start_test.obj : object file not found


后来,经过查阅资料发现是文件名太长,文件名不要超过8个字就可以正常编译通过了



本文转自 pangfc 51CTO博客,原文链接:http://blog.51cto.com/983836259/1679764,如需转载请自行联系原作者

相关文章
|
1月前
|
编解码
KeyError: “No object named ‘BSRN‘ found in ‘arch‘ registry!“
KeyError: “No object named ‘BSRN‘ found in ‘arch‘ registry!“
45 0
|
5月前
libfreetype.so.6: cannot open shared object file: No such file or directory
libfreetype.so.6: cannot open shared object file: No such file or directory
155 0
|
2月前
|
Java
cannot open shared object file: No such file or directory
cannot open shared object file: No such file or directory
21 0
|
4月前
|
Java
cannot open shared object file: No such file or directory
cannot open shared object file: No such file or directory
35 0
|
4月前
报错modify sync object Modify sync object Failed!
报错modify sync object Modify sync object Failed!
21 1
|
5月前
|
NoSQL MongoDB
mongod: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No s
mongod: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No s
142 0
|
5月前
gdalinfo: error while loading shared libraries: libgdal.so.30: cannot open shared object file: No su
gdalinfo: error while loading shared libraries: libgdal.so.30: cannot open shared object file: No su
|
5月前
|
关系型数据库 MySQL
mysql: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such
mysql: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such
|
6月前
|
人工智能 自然语言处理 JavaScript
vue.runtime.esm.js?2b0e:619 [Vue warn]: Error in created hook: “TypeError: Object(...) is not a func
vue.runtime.esm.js?2b0e:619 [Vue warn]: Error in created hook: “TypeError: Object(...) is not a func
48 0