So I am following the book "Guide to assembly language. A concise introduction." By James T. Streib. And I am trying to run the following program in Visual Studio 2019:
includelib msvcrt.lib
includelib legacy_stdio_definitions.lib
.686
.model flat, c
.stack 100h
printf PROTO arg1:Ptr Byte
.data
msg1 byte "Hello World!",0Ah,0
.code
main proc
INVOKE printf, ADDR msg1
ret
main endp
end
The book recommends to add the libraries at the top to the linker->Input->Additional dependencies, But at the moment of trilling to assembly the code the following error still shows up: LINK : fatal error LNK1104: cannot open file 'legacy_stdio_definitions.'
Does anyone know what the problem is? Is the code presented in the book valid? Is there any way to make the program to work the way it is written? Thanks a lot.