title: Link library (.lib) into Visual Studio 2013 project
body: <p>I built library by following instructions of <a href="https://github.com/attie/libxbee3" rel="nofollow noreferrer">link</a>. In order to link that library to Visual Studio I used the following methods but none of them cannot link to that I built .lib file. </p>
  
  <ol>
  <li><p>Windows system variables add dynamic library path (Environment variables -> Path)</p>
  
  <ul>
  <li>Set to; C:\Users\venushka\Desktop\libxbee3-win32\lib</li>
  </ul></li>
  <li><p>Visual Studio ( to include header and source files C++)</p>
  
  <ul>
  <li>Configuration properties -> C/C++ -> General -> Additional include directories set to C:\Users\venushka\Desktop\libxbee3-win32</li>
  </ul></li>
  <li><p>Link the library </p>
  
  <ul>
  <li>Configuration properties -> Linker -> General -> Additional Library directories set to </li>
  <li>C:\Users\venushka\Desktop\libxbee3-win32\lib</li>
  </ul></li>
  <li><p>Add name of object library file</p>
  
  <ul>
  <li>Configuration properties -> Linker -> input -> Additional Dependencies I added there as libxbee3.lib</li>
  </ul></li>
  <li><p>For linking purpose I added  </p>
  
  <ul>
  <li>Add -> Existing item (project properties) both .dll &amp; .lib files but that thing also didn't make any difference still keep the same errors.   </li>
  </ul></li>
  <li><p>Finally I add </p>
  
  <pre><code>#pragma comment (lib, "libxbee3.lib")
  #pragma comment (lib, "libxbee3.dll")
  </code></pre></li>
  </ol>
  
  <p>I'm getting unresolved external errors which says that I couldn't link that library successfully. Any help is appreciated.</p>
  
  <p>I have attached the screenshot <a href="https://i.stack.imgur.com/5QVuP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5QVuP.png" alt="Screenshot"></a></p>
  
  <p>Error log</p>
  
  <pre><code>Error   1   error LNK2019: unresolved external symbol _xbee_setup referenced in function _wmain C:\Users\venushka\documents\visual studio 2013\Projects\xbeetest\xbeetest\xbeetest.obj
  Error   2   error LNK2019: unresolved external symbol _xbee_shutdown referenced in function _wmain  C:\Users\venushka\documents\visual studio 2013\Projects\xbeetest\xbeetest\xbeetest.obj
  Error   3   error LNK2019: unresolved external symbol _xbee_conGetTypes referenced in function _wmain   C:\Users\venushka\documents\visual studio 2013\Projects\xbeetest\xbeetest\xbeetest.obj
  Error   4   error LNK2019: unresolved external symbol _xbee_errorToStr referenced in function _wmain    C:\Users\venushka\documents\visual studio 2013\Projects\xbeetest\xbeetest\xbeetest.obj
  Error   5   error LNK1120: 4 unresolved externals   C:\Users\venushka\documents\visual studio 2013\Projects\xbeetest\Debug\xbeetest.exe 1
  </code></pre>