none
LINK : fatal error LNK1104: cannot open file 'winpcap.lib'

    Question

  • I followed all steps in

    http://www.rhyous.com/2011/11/12/how-to-compile-winpcap-with-visual-studio-2010/

    (additional dependency are correctly added to project properties)

    but I've got the following error message :

    Error    1    error LNK1104: cannot open file 'winpcap.lib'    C:\Users\Taesiri\documents\visual studio 2010\Projects\BasicSniffer\BasicSniffer\LINK   

     

    the directory : "..\BasicSniffer\BasicSniffer\LINK" Doesn't exist!

     


    -- Mreza
    Thursday, January 05, 2012 2:10 PM

Answers

All replies

  • And exists the specified directory with the file winpcap.lib?
    Thursday, January 05, 2012 5:03 PM
  • the LINK folder doesn't exist,  i tried to create it and put winpcap.lib,Packet.lib in there, but nothing changed!

    (I set Additional Library Directory to "C:\pcap\WpdPack\Lib", i also copied headers & library files to visual studio directory, but nothing happened!)


    -- Mreza
    Thursday, January 05, 2012 5:16 PM
  • when you put the *.lib files that were stated in the error message what erro will occure than?

    What target are you creating, x86, x64, IA64?

    Saturday, January 07, 2012 1:24 PM
  • the same error!

     

    screenshot :

     

     

     

    target platform is win32


    -- Mreza
    Saturday, January 07, 2012 2:31 PM
  • On your screenshot the file in the file explorer is named "wpcap.lib", and you want to link "winpcap.lib". 
    Saturday, January 07, 2012 8:51 PM
  • Oh my God! :D, my bad! thanks anyway!
    -- Mreza
    Saturday, January 07, 2012 9:48 PM