[Winpcap-users] Problem compile Statistics example with Dev-C++

Fabian Heinze f.heinze at feueraus.de
Wed Apr 25 10:28:37 GMT 2007


Hello,

i have tried to compile the statistic example
http://www.winpcap.org/docs/docs_40/html/group__wpcap__tut9.html
with wxDev-C++.

I have startet a new c console-project, copied the wpcap include folder into the
Dev-C++ include folder and add the libwpcap.a library to my project.
But I get the following error:

Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\counter_test\Makefile.win"
Finding dependencies for file: C:\Dev-Cpp\counter_test\..\WpdPack\Lib\main.c
Führt  make... aus
make.exe -f "C:\Dev-Cpp\counter_test\Makefile.win" all gcc.exe -D__DEBUG__ -c
../WpdPack/Lib/main.c -o ../WpdPack/Lib/main.obj
-I"C:/Dev-Cpp/include"  -I"C:/Dev-Cpp/include/wcap"   -fexpensive-optimizations
-O3 -g3

In file included from C:/Dev-Cpp/include/wcap/pcap-stdinc.h:52,
                 from C:/Dev-Cpp/include/wcap/pcap.h:41,
                 from ../WpdPack/Lib/main.c:36:
C:/Dev-Cpp/include/wcap/bittypes.h:36: error: redefinition of typedef 'int8_t'
C:/Dev-Cpp/include/stdint.h:27: error: previous declaration of 'int8_t' was here
C:/Dev-Cpp/include/wcap/bittypes.h:52: error: redefinition of typedef 'int16_t'
C:/Dev-Cpp/include/stdint.h:29: error: previous declaration of 'int16_t' was
here
C:/Dev-Cpp/include/wcap/bittypes.h:71: error: redefinition of typedef 'int32_t'
C:/Dev-Cpp/include/stdint.h:31: error: previous declaration of 'int32_t' was
here

../WpdPack/Lib/main.c: In function `main':
../WpdPack/Lib/main.c:59: error: `PCAP_OPENFLAG_PROMISCUOUS' undeclared (first
use in this function)
../WpdPack/Lib/main.c:59: error: (Each undeclared identifier is reported only
once
../WpdPack/Lib/main.c:59: error: for each function it appears in.)
../WpdPack/Lib/main.c:59: warning: assignment makes pointer from integer without
a cast

../WpdPack/Lib/main.c:44: warning: return type of 'main' is not `int'

make.exe: *** [../WpdPack/Lib/main.obj] Error 1

Ausführung beendet

How can I solve this problem?

Thanks
Fabian






More information about the Winpcap-users mailing list