title: Linking Problems with Visual Studio
body: <p>I have a problem concidered with linking to my own static library:</p>
  
  <p>Simply adding the path of the *.h and *.lib file is not enough.</p>
  
  <p>The include of my *.h works fine and I can use classes from it.
  So there are no syntax errors.</p>
  
  <p>But when I try to build it I get "error LNK2001".</p>
  
  <p>I can solve this problem by adding "#pragma comment(lib,"MyLibrary.lib")" and it works perfectly fine. But as far as i know it should work without that.</p>
  
  <p>The boost-libraries work perfectly fine without the pragma comment and they are included the same way as my own library is :/ </p>
  
  <p>Anyone knows how to fix this or why it doesn't work without the pragma comment?</p>
  
  <p><em><strong>EDIT:</em></strong></p>
  
  <p>I added the Path to my *.h file to "Properties->VC++-Directories->Include-Directories"
  and the Path to my *.lib file to "Properties->VC++-Directories->Library-Directories"
  (I am not sure about the english names because I'm not using the english version but I guess you know what i mean =) )</p>
  
  <p>Did the same with the boost libraries
  (And according to what I've found on the internet this should have been enough :/ )</p>