I am trying to create a sniffer program with libpcap on windows xp sp2. I am using Dev-C++ and I downloaded the winpcap 3.0 developer's pack. On site the winpcap, there is a documentation about the use with MS Visual C++, but I don't get to compile using the Dev-C++.

There is a winpcap how-to using Dev-C++?

#include <stdio.h>
#include <stdlib.h>

#include <pcap.h>

main() {



Compiler log:
Compilador: Default compiler
Executando gcc.exe...
gcc.exe "D:\Progs\test3.c" -o "D:\Progs\test3.exe" -I"D:\Dev-Cpp\include" -L"D:\Dev-Cpp\lib"
In file included from D:/Dev-Cpp/include/pcap-stdinc.h:32,
from D:/Dev-Cpp/include/pcap.h:41,
from D:\Progs\test3.c:4:
D:/Dev-Cpp/include/bittypes.h:36: error: redefinition of typedef 'int8_t'
D:/Dev-Cpp/include/stdint.h:27: error: previous declaration of 'int8_t' was here
D:/Dev-Cpp/include/bittypes.h:52: error: redefinition of typedef 'int16_t'
D:/Dev-Cpp/include/stdint.h:29: error: previous declaration of 'int16_t' was here
D:/Dev-Cpp/include/bittypes.h:71: error: redefinition of typedef 'int32_t'
D:/Dev-Cpp/include/stdint.h:31: error: previous declaration of 'int32_t' was here

Execução terminada

Thanks by help.