title: visual studio c++ static linking what to do
body: <p>i want to read from a pcap file and used the winpcap libary ( <a href="http://www.winpcap.org/" rel="nofollow">http://www.winpcap.org/</a> ) for that. after downloading i installed it (and therefore i think their dlls got copied somewhere my system is searching for them). i want to STATIC link the libary to my project, because i dont want to add the winpcap dlls everytime on another computer(which wouldnt be a problem if the computer had installed winpcap too i guess).</p>
  
  <p>in visual studio i added the include path for the headerfiles and the libary path. then i add the libarys "libwpcap.a" and "libpacket.a" to the additional dependencies. (there are also the files "wpcap.lib" and "packet.lib" in the directory, i think they are used for dynamic linking?).
  my code works fine but when i moved the executeable to my other computer, where i didnt installed winpcap before, it says missing wpcap.dll.. so its just dynamic linked, am i right?</p>
  
  <p>but this case i wanted to prevent. so how can i tell the linker, that he has to link it static.. damn i am searching for it quite some time now. but i dont know what i am doing wrong :( thought .a files get static linked and .lib files are used to link dynamicly.</p>