title: Help with linking in Visual C++ Express
body: <p>I'm new to VC++ and would like to know know how to link "wsock32.lib" within VC++. I'm trying to write a simple c++ server app and these are the error messages I'm getting. So how do I go about linking something in VC++?. Also is wsock32 the correct lib that I need?</p>
  
  <pre><code>1&gt;------ Build started: Project: bla, Configuration: Debug Win32 ------
  1&gt;bla.obj : error LNK2019: unresolved external symbol _closesocket@4 referenced in function _main
  1&gt;bla.obj : error LNK2019: unresolved external symbol _send@16 referenced in function _main
  1&gt;bla.obj : error LNK2019: unresolved external symbol _recv@16 referenced in function _main
  1&gt;bla.obj : error LNK2019: unresolved external symbol _accept@12 referenced in function _main
  1&gt;bla.obj : error LNK2019: unresolved external symbol _listen@8 referenced in function _main
  1&gt;bla.obj : error LNK2019: unresolved external symbol _bind@12 referenced in function _main
  1&gt;bla.obj : error LNK2019: unresolved external symbol _socket@12 referenced in function _main
  1&gt;bla.obj : error LNK2019: unresolved external symbol _htons@4 referenced in function _main
  1&gt;bla.obj : error LNK2019: unresolved external symbol _WSAStartup@8 referenced in function _main
  1&gt;C:\Users\-r.s-\Desktop\bla\Debug\bla.exe : fatal error LNK1120: 9 unresolved externals
  ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
  </code></pre>