You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. I am using mingw32 and 32 bit python 2.7
-WpdPack is downloaded and used in include and lib dir in setup.py . I changed the Include and Lib directories in setup.py (in pcapy) and they are true.
-I also installed python setuptools
-MinGW and gcc are correctly installed (I compiled many other C++ files with them, and using python)
-I use command python setup.py build_ext -c mingw32 in the folder contains pcapy.
first I had this error :
c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
using ::hypot;
^~~~~
I added #define hypot _hypot before that line and this error faded away.
now I have this error :
c:\mingw\include\stdio.h:349:12:
In file included from C:\sulley-master\WpdPack\Include/pcap/pcap.h:54:0,
from C:\sulley-master\WpdPack\Include/pcap.h:45,
from bpfobj.cc:10:
c:\mingw\include\stdio.h:345:12: error: expected initializer before '__mingw__snprintf'
extern int mingw_stdio_redirect(snprintf)(char*, size_t, const char*, ...);
c:\mingw\include\stdio.h:349:12: error: expected initializer before '__mingw__vsnprintf'
extern int mingw_stdio_redirect(vsnprintf)(char*, size_t, const char*, __VALIST);
error: command 'C:\MinGW\bin\gcc.exe' failed with exit status 1
I don't know what shall I do with this. please help me.
The text was updated successfully, but these errors were encountered:
Hi. I am using mingw32 and 32 bit python 2.7
-WpdPack is downloaded and used in include and lib dir in setup.py . I changed the Include and Lib directories in setup.py (in pcapy) and they are true.
-I also installed python setuptools
-MinGW and gcc are correctly installed (I compiled many other C++ files with them, and using python)
-I use command
python setup.py build_ext -c mingw32
in the folder contains pcapy.first I had this error :
I added
#define hypot _hypot
before that line and this error faded away.now I have this error :
I don't know what shall I do with this. please help me.
The text was updated successfully, but these errors were encountered: