title: Simple Assembly program on visual studio 2017
body: <pre><code>        .386
          .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 main
  </code></pre>
  
  <p>Hi, I am getting the below errors:</p>
  
  <p>I searched around and found someone said that it can be fixed by linking the microsoft runtime library</p>
  
  <p>Can anyone teach me how can I exactly fix it?</p>
  
  <p>Thanks</p>
  
  <pre><code>Severity    Code    Description Project File    Line    Suppression State
  Error   LNK2019 unresolved external symbol _printf referenced in function _main testing C:\Users\Kin\Desktop\assembly\testing\testing\Source.obj    1   
  Error   LNK1120 1 unresolved externals  testing C:\Users\Kin\Desktop\assembly\testing\Debug\testing.exe 1   
  </code></pre>