Hello,

I have setup Visual C++ Express for use with WinPcap following the guide on the winpcap site ( http://www.winpcap.org/docs/docs_412...pcapsamps.html ). When I test a console app using winpcap, it will run fine, so I know it is setup properly. However, I have started to make a windows forms version of the console app. I put all the winpcap functions i made in a seperate header (functions.h) and I include this in the main form header. I haven't used the functions in the main header yet, only included them. I get a linker error:

Code:
1>app.obj : error LNK2031: unable to generate p/invoke for "extern "C" void __clrcall pcap_freealldevs(struct pcap_if *)" (?pcap_freealldevs@@$$J0YMXPAUpcap_if@@@Z); calling convention missing in metadata
1>app.obj : error LNK2031: unable to generate p/invoke for "extern "C" int __clrcall pcap_findalldevs_ex(char *,struct pcap_rmtauth *,struct pcap_if * *,char *)" (?pcap_findalldevs_ex@@$$J0YMHPADPAUpcap_rmtauth@@PAPAUpcap_if@@0@Z); calling convention missing in metadata
1>app.obj : error LNK2028: unresolved token (0A000040) "extern "C" void __clrcall pcap_freealldevs(struct pcap_if *)" (?pcap_freealldevs@@$$J0YMXPAUpcap_if@@@Z) referenced in function "void __clrcall getDevices(void)" (?getDevices@@$$FYMXXZ)
1>app.obj : error LNK2028: unresolved token (0A000041) "extern "C" int __clrcall pcap_findalldevs_ex(char *,struct pcap_rmtauth *,struct pcap_if * *,char *)" (?pcap_findalldevs_ex@@$$J0YMHPADPAUpcap_rmtauth@@PAPAUpcap_if@@0@Z) referenced in function "void __clrcall getDevices(void)" (?getDevices@@$$FYMXXZ)
1>app.obj : error LNK2019: unresolved external symbol "extern "C" void __clrcall pcap_freealldevs(struct pcap_if *)" (?pcap_freealldevs@@$$J0YMXPAUpcap_if@@@Z) referenced in function "void __clrcall getDevices(void)" (?getDevices@@$$FYMXXZ)
1>app.obj : error LNK2019: unresolved external symbol "extern "C" int __clrcall pcap_findalldevs_ex(char *,struct pcap_rmtauth *,struct pcap_if * *,char *)" (?pcap_findalldevs_ex@@$$J0YMHPADPAUpcap_rmtauth@@PAPAUpcap_if@@0@Z) referenced in function "void __clrcall getDevices(void)" (?getDevices@@$$FYMXXZ)
1>C:\Users\Jason\Desktop\win C++\project\app\Debug\app.exe : fatal error LNK1120: 4 unresolved externals
please help!