title: Unresolved externals by adding an assembly file in a C project
body: <p>I am trying to make my first (assembly file usage in vs)program by adding an assembly file to the visual C++ project</p>
  
  <p><strong>My C++ Code</strong></p>
  
  <pre><code>#include&lt;iostream&gt;
  using namespace std;
  extern "C" void TestRegisters();
  int main()
  {
      cout &lt;&lt; "Testing Registers" &lt;&lt; endl;
      TestRegisters();
      cin.get();
      return 0;
  }
  </code></pre>
  
  <p><strong>My Assembly code</strong></p>
  
  <pre><code>.data
  mybyte db 0
  
  .code
       TestRegisters proc
          mov rax,3342
          mov rbx,2213
          mov rcx,rax
          mov mybyte,rax
          ret
       TestRegisters endp
  
  end
  </code></pre>
  
  <p>I have also done following configuration </p>
  
  <pre><code>1.Using solution configuration I have made my platform x64.
  2.I have also made my build coustomization setting to masm.
  </code></pre>
  
  <p>I am getting two errors.</p>
  
  <pre><code>1.error LNK1120: 1 unresolved externals 
  2.error LNK2019: unresolved external symbol TestRegisters referenced in function main 
  </code></pre>
  
  <p>Although there are several post already available but that did not help me unfortunately.</p>