SoftEtherVPN / Win10Pcap

Win10Pcap: WinPcap for Windows 10 (NDIS 6.x driver model)
Other
337 stars 122 forks source link

Compiling with MingW #3

Open gvanem opened 8 years ago

gvanem commented 8 years ago

There are some gcc errors when building with TDM-gcc:

win_bpf_filter.c: In function 'bpf_filter':
win_bpf_filter.c:419:11: error: lvalue required as left operand of assignment
    (int)A = -((int)A);
           ^
win_bpf_filter.c: In function 'bpf_filter_with_2_buffers':
win_bpf_filter.c:920:11: error: lvalue required as left operand of assignment
    (int)A = -((int)A);

Not to speak about all the warnings :-) This was my gcc 5.1 compile command:

gcc -m32 -O2 -g  -O0 -ggdb -D_NTLSA_IFS_ -DMINGW_HAS_SECURE_API