初学者, 还没上手
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 语句了吧