-
-
[旧帖]
[求助]关于编译的问题,请教
0.00雪花
-
发表于:
2009-2-6 18:53
4704
-
[旧帖] [求助]关于编译的问题,请教
0.00雪花
一个简单的汇编程序,如下
assume cs:codesg
codesg segment
start:
mov ax,0123h
mov bx,0456h
add ax,bx
add ax,ax
mov ax,4c00h
int 21h
codesg ends
end start
该程序用masm5.0的masm和link编译连接都没有问题,但是用masm32中的qeditor打开,然后在菜单中选择编译,连接,为什么连接时会出错?
错误为:LINK : error LNK2001: unresolved external symbol _start1.exe : fatal error LNK1120: 1 unresolved externals
是不是masm32是win32的编译器,需要加include头文件?若不是,又是什么呢?
masm32编译连接信息为:
Assembling: C:\masm32\1.asm
C:\masm32\1.asm(14) : warning A4023: with /coff switch, leading underscore required for start address : start
Microsoft (R) Incremental Linker Version 5.12.8078
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
LINK : error LNK2001: unresolved external symbol _start
1.exe : fatal error LNK1120: 1 unresolved externals
[课程]Android-CTF解题方法汇总!