当前位置: 代码迷 >> 汇编语言 >> MASM Link异常
  详细解决方案

MASM Link异常

热度:10578   发布时间:2013-02-26 00:00:00.0
MASM Link错误
初学者,   还没上手
1.obj   :   error   LNK2001:   unresolved   external   symbol   _ExitProcess@4
masm32.lib(STDOUT.obj)   :   error   LNK2001:   unresolved   external   symbol   _GetStdHandle
@4
masm32.lib(STDOUT.obj)   :   error   LNK2001:   unresolved   external   symbol   _WriteFile@20

1.exe   :   fatal   error   LNK1120:   3   unresolved   externals


源程序如下:
.386
.model   flat,   stdcall
option   casemap   :none

include   \masm32\include\windows.inc
include   \masm32\include\kernel32.inc
include   \masm32\include\masm32.inc

includelib   \masm32\lib\masm32.lib

.data
HelloWorld   db   "Hello   World! ",   0

.code

start:
invoke   StdOut,   addr   HelloWorld
invoke   ExitProcess,   0
end   start

------解决方案--------------------------------------------------------
少了 includelib \masm32\lib\kernel32.lib 语句了吧
  相关解决方案