我无法在书Guide to Assembly Language: A Concise Introduction by James T. Streib中使用汇编语言程序作为示例运行。我正在使用Visual Studio 2015.我遵循这些说明:http://www.jtstreib.com/VStudio13.html我已经完成了该指南中描述的所有步骤,但程序仍然无法运行。试图组装它,我得到这个错误:
LNK2019 unresolved external symbol _printf referenced in function _main
LNK1120 1 unresolved externals
源代码:
.386
.model flat, c
.stack 100h
printf proto arg:ptr byte
.data
msg byte "Hello World!", 0Ah, 00h
.code
main proc
invoke printf, addr msg
ret
main endp
end