初学,碰到个问题不知是什么回事?
Intel汇编语言程序设计(第四版)的一个例了AddSub2.asm
代码如下:
TITLE Add and Subtract, Version 2 (AddSub2.asm)
; This program adds and subtracts 32-bit integers
; and stores the sum in a variable.
; Last update: 2/1/02
INCLUDE Irvine32.inc
.data
val1 dword 10000h
val2 dword 40000h
val3 dword 20000h
finalVal dword ?
.code
main PROC
mov eax,val1 ; start with 10000h
add eax,val2 ; add 40000h
sub eax,val3 ; subtract 20000h
mov finalVal,eax ; store the result (30000h)
call DumpRegs ; display the registers
exit
main ENDP
END main
当编译时出如下提示:
E:\MASM611\BIN>ml addsub2.asm
Microsoft (R) Macro Assembler Version 6.11
Copyright (C) Microsoft Corp 1981-1993. All rights reserved.
Assembling: addsub2.asm
Microsoft (R) Segmented Executable Linker Version 5.31.009 Jul 13 1992
Copyright (C) Microsoft Corp 1984-1992. All rights reserved.
Object Modules [.obj]: addsub2.obj
Run File [addsub2.exe]: "addsub2.exe"
List File [nul.map]: NUL
Libraries [.lib]:
Definitions File [nul.def]:
addsub2.obj(addsub2.asm) : error L2029: '_ExitProcess@4' : unresolved external
addsub2.obj(addsub2.asm) : error L2029: '_DumpRegs@0' : unresolved external
There were 2 errors detected
这两个错误是什么意义?