[prev in list] [next in list] [prev in thread] [next in thread] 

List:       winpcap-users
Subject:    Re: [Winpcap-users] LNK2019: Unresolved external symbol _pcap_close
From:       "Gianluca Varenni" <gianluca.varenni () cacetech ! com>
Date:       2007-09-10 9:31:43
Message-ID: 19be01c7f38d$686cd650$0614a8c0 () NELSON2
[Download RAW message or body]

Just a detail on this: adding wpcap.lib in the linker options for VC++ is 
*not* a workaround. This is how you link a WinPcap-based application. And 
this is how you link whatever application compiled with VC++ with an 
external DLL (if you use DLLs and early binding): you must include the .lib 
corresponding to your DLL in the linker options of your project. The .lib 
file must be provided by whomever gives you the DLL itself.

Just my two cents
GV



----- Original Message ----- 
From: "Kevin Miles" <kevin.miles@delgaldo.co.uk>
To: <winpcap-users@winpcap.org>
Sent: Friday, September 07, 2007 6:20 AM
Subject: RE: [Winpcap-users] LNK2019: Unresolved external symbol _pcap_close


> MSVC++ is mangling the name and adding a leading underscore. The 
> workaround
> is to link in the library wpcap.lib which seems to map the underscored 
> names
> to the 'real' ones. (Thanks to Bryan Kadzban who told me this.)
>
> Kevin.
>
> On 07 September 2007 12:55 winpcap-users-bounces@winpcap.org <> wrote:
>
>> Hi,
>>
>>
>>
>> I using VS2006 to compile the "capture" example.
>>
>> I am getting: LNK2019: Unresolved external symbol
>> _pcap_close
>>
>>
>>
>> I have worked through the section "Using WinPcap in
>> your programs".
>>
>>
>>
>> Any ideas?
>>
>>
>>
>> Cheers,
>>
>> Craig
>>
>>
>>
>>
>>
>>
>> __________________________________________________________________
>> __________________ Sick of deleting your inbox? Yahoo!7 Mail has free
>> unlimited storage. http://au.docs.yahoo.com/mail/unlimitedstorage.html
>>
>> _______________________________________________
>> Winpcap-users mailing list
>> Winpcap-users@winpcap.org
>> https://www.winpcap.org/mailman/listinfo/winpcap-users
>
> _______________________________________________
> Winpcap-users mailing list
> Winpcap-users@winpcap.org
> https://www.winpcap.org/mailman/listinfo/winpcap-users 

_______________________________________________
Winpcap-users mailing list
Winpcap-users@winpcap.org
https://www.winpcap.org/mailman/listinfo/winpcap-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic